Application Guide

RefreshProbeVars
Catalog >
RefreshProbeVars
Allows you to access sensor data from all
connected sensor probes in your TI-Basic
program.
StatusVar
Value
Status
statusVar
=0
Normal (continue with the
program)
statusVar
=1
The Vernier DataQuest™
application is in data collection
mode.
Note: The Vernier DataQuest™
application must be in meter
mode for this command to work.
statusVar
=2
The Vernier DataQuest™
application is not launched.
statusVar
=3
The Vernier DataQuest™
application is launched, but you
have not connected any probes.
Example
Define temp()=
Prgm
© Check if system is ready
RefreshProbeVars status
If status=0 Then
Disp "ready"
For n,1,50
RefreshProbeVars status
temperature:=meter.temperature
Disp "Temperature:
",temperature
If temperature>30 Then
Disp "Too hot"
EndIf
© Wait for 1 second between
samples
Wait 1
EndFor
Else
Disp "Not ready. Try again
later"
EndIf
EndPrgm
Note: This can also be used with TI-
Innovator™ Hub.
Alphabetical Listing 149