varSamp()
Catalog >
If an element in either matrix is empty
(void), that element is ignored, and the
corresponding element in the other matrix
is also ignored. For more information on
empty elements, see page 232.
Note:
Matrix1
must contain at least two
rows.
W
Wait
Catalog >
Wait
timeInSeconds
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 4 seconds:
Wait 4
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 green LED on for
0.5 seconds and then switches it off.
Send "SET GREEN 1 ON"
Wait 0.5
Send "SET GREEN 1 OFF"
Alphabetical Listing
195
Summary of Contents for TI-Nspire CAS
Page 4: ...4 Service and Warranty Information 249 Index 251 ...
Page 248: ...248 ...
Page 250: ...250 ...