User Manual - Page 169

For N3/TBL/1L1/J.

Loading ...
Loading ...
Loading ...
Wait
Catalog >
Suspends execution for a period of
timeInSeconds seconds.
Wait is particularly useful in a program that
needs a brief delay to allow requested data
to become available.
The argument timeInSeconds must be an
expression that simplifies to a decimal value
in the range 0 through 100. The command
rounds this value up to the nearest 0.1
seconds.
To cancel a Wait that is in progress,
Handheld: Hold down the c key and
press · repeatedly.
Windows®: Hold down the F12 key and
press Enter repeatedly.
Macintosh®: Hold down the F5 key and
press Enter repeatedly.
iPad®: The app displays a prompt. You can
continue waiting or cancel.
Note: You can use the Wait command within
a user-defined program but not within a
function.
To wait 1/2 second:
Wait 0.5
To wait 1.3 seconds using the variable
seccount:
seccount:=1.3
Wait seccount
This example switches a greenLED on for
0.5 seconds and then switches it off.
Send "SET GREEN 1 ON"
Wait 0.5
Send "SET GREEN 1 OFF"
warnCodes ()
Catalog >
warnCodes(Expr1, StatusVar)
expression
Evaluates expression Expr1, returns the
result, and stores the codes of any
generated warnings in the StatusVar list
variable. If no warnings are generated, this
function assigns StatusVar an empty list.
Expr1 can be any valid TI-Nspire™ or
TI-Nspire™CAS math expression. You
cannot use a command or assignment as
Expr1.
StatusVar must be a valid variable name.
For a list of warning codes and associated
messages, see page 211.
Alphabetical Listing 165
Loading ...
Loading ...
Loading ...