Other Content
Table Of Contents
- Important Information
- Getting Started with TI‑Nspire™ Student Software
- Using the Documents Workspace
- Working with Connected Handhelds
- Working with TI‑Nspire™ Documents
- Creating a New TI‑Nspire™ Document
- Opening an Existing Document
- Saving TI‑Nspire™ Documents
- Deleting Documents
- Closing Documents
- Formatting Text in Documents
- Using Colors in Documents
- Setting Page Size and Document Preview
- Working with Multiple Documents
- Working with Applications
- Selecting and Moving Pages
- Working with Problems and Pages
- Printing Documents
- Viewing Document Properties and Copyright Information
- Working with PublishView™ Documents
- Creating a New PublishView™ Document
- Saving PublishView™ Documents
- Exploring the Documents Workspace
- Working with PublishView™ Objects
- Working with TI-Nspire™ Applications
- Working with Problems
- Organizing PublishView™ Sheets
- Using Zoom
- Adding Text to a PublishView™ Document
- Using Hyperlinks in PublishView™ Documents
- Working with Images
- Working with Video Files
- Converting Documents
- Printing PublishView™ Documents
- Working with Lesson Bundles
- Capturing Screens
- Working with Images
- Responding to Questions
- Calculator Application
- Using Variables
- Graphs Application
- What You Must Know
- Graphing Functions
- Manipulating Functions by Dragging
- Specifying a Function with Domain Restrictions
- Finding Points of Interest on a Function Graph
- Graphing a Family of Functions
- Graphing Equations
- Graphing Conic Sections
- Graphing Parametric Equations
- Graphing Polar Equations
- Using the Text Tool to Graph Equations
- Graphing Scatter Plots
- Plotting Sequences
- Graphing Differential Equations
- Viewing Tables from the Graphs Application
- Editing Relations
- Accessing the Graph History
- Zooming/Rescaling the Graphs Work Area
- Customizing the Graphs Work Area
- Hiding and Showing Items in the Graphs Application
- Conditional Attributes
- Calculating Area Between Curves
- Tracing Graphs or Plots
- Introduction to Geometric Objects
- Creating Points and Lines
- Creating Geometric Shapes
- Basics of Working with Objects
- Measuring Objects
- Transforming Objects
- Exploring with Geometric Construction Tools
- Animating Points on Objects
- Adjusting Variable Values with a Slider
- Labeling (Identifying) the Coordinates of a Point
- Displaying the Equation of a Geometric Object
- Using the Calculate Tool
- 3D Graphs
- Geometry Application
- What You Must Know
- Introduction to Geometric Objects
- Creating Points and Lines
- Creating Geometric Shapes
- Basics of Working with Objects
- Measuring Objects
- Transforming Objects
- Exploring with Geometric Construction Tools
- Using Geometry Trace
- Conditional Attributes
- Hiding Objects in the Geometry Application
- Customizing the Geometry Work Area
- Animating Points on Objects
- Adjusting Variable Values with a Slider
- Using the Calculate Tool
- Lists & Spreadsheet Application
- Creating and Sharing Spreadsheet Data as Lists
- Creating Spreadsheet Data
- Navigating in a Spreadsheet
- Working with Cells
- Working with Rows and Columns of Data
- Sorting Data
- Generating Columns of Data
- Graphing Spreadsheet Data
- Exchanging Data with Other Computer Software
- Capturing Data from Graphs & Geometry
- Using Table Data for Statistical Analysis
- Statistics Input Descriptions
- Statistical Calculations
- Distributions
- Confidence Intervals
- Stat Tests
- Working with Function Tables
- Data & Statistics Application
- Notes Application
- Using Templates in Notes
- Formatting Text in Notes
- Using Color in Notes
- Inserting Images
- Inserting Items on a Notes Page
- Inserting Comments in Notes Text
- Inserting Geometric Shape Symbols
- Entering Math Expressions in Notes Text
- Evaluating and Approximating Math Expressions
- Inserting Chemical Equations in Notes
- Deactivating Math Expression Boxes
- Changing the Attributes of Math Expression Boxes
- Using Calculations in Notes
- Exploring Notes with Examples
- Data Collection
- What You Must Know
- About Collection Devices
- Connecting Sensors
- Setting Up an Offline Sensor
- Modifying Sensor Settings
- Collecting Data
- Using Data Markers to Annotate Data
- Collecting Data Using a Remote Collection Unit
- Setting Up a Sensor for Automatic Triggering
- Collecting and Managing Data Sets
- Analyzing Collected Data
- Displaying Collected Data in Graph View
- Displaying Collected Data in Table View
- Customizing the Graph of Collected Data
- Striking and Restoring Data
- Replaying the Data Collection
- Adjusting Derivative Settings
- Drawing a Predictive Plot
- Using Motion Match
- Printing Collected Data
- Libraries
- Getting Started with the Program Editor
- Defining a Program or Function
- Viewing a Program or Function
- Opening a Function or Program for Editing
- Importing a Program from a Library
- Creating a Copy of a Function or Program
- Renaming a Program or Function
- Changing the Library Access Level
- Finding Text
- Finding and Replacing Text
- Closing the Current Function or Program
- Running Programs and Evaluating Functions
- Getting Values into a Program
- Displaying Information from a Function or Program
- Using Local Variables
- Differences Between Functions and Programs
- Calling One Program from Another
- Controlling the Flow of a Function or Program
- Using If, Lbl, and Goto to Control Program Flow
- Using Loops to Repeat a Group of Commands
- Changing Mode Settings
- Debugging Programs and Handling Errors
- Using the TI‑SmartView™ Emulator
- Writing Lua Scripts
- Using the Help Menu
- Support and Service
- Index
Writing Lua Scripts
The Script Editor allows you to create and deliver dynamically linked
simulations, powerful and flexible utilities, and other educational content for
exploring math and science concepts. When you open a document containing
a script, the script runs automatically as programmed. To see the running script
application, the page containing the script application must be active.
The Script Editor is directed toward teachers and other authors who are
comfortable working in a Lua scripting environment. Lua is a powerful, fast,
lightweight scripting language that is fully supported in TI-Nspire™ and
PublishView™ documents. Documents containing script applications can be
opened on TI-Nspire™ handhelds and in the TI-Nspire™ Document Player. The
script application runs on a handheld or in Document Player, but you cannot
view or edit the script.
Note these resources for using the Script Editor and creating scripts:
• Press F1 to access the TI-Nspire™ help, which includes the Script Editor
help.
• Press F2 for additional TI-Nspire™ resources such as scripting samples
and a link to the TI-Nspire™ Scripting API library. (This information is also
available at education.ti.com/nspire/scripting.)
• Go to lua.org for more information about Lua.
Overview of the Script Editor
With the Script Editor, you can insert, edit, save, run, and debug script
applications inTI-Nspire™ (.tns files) and Publishview™ (.tnsp files) documents.
• Script applications function within documents, problems, and pages the
same way that other TI-Nspire™ applications do.
• When you create a new document or open an existing document, you can
insert or edit a script application within a page or within a work area of a
split page.
• In a split page layout, you can add a script application to each work area of
a page. A page can be split into a maximum of four quadrants.
• Images can be added to script applications. See the
Inserting Images
section.
Writing Lua Scripts 521