Example 4: Multiple Channels Non-Realtime Data Collection; Example 5: Conversion Equation Setup (Command 4) - Texas Instruments CBL 2 Reference Manual

Ti cbl 2 data collector: reference guide
Hide thumbs Also See for CBL 2:
Table of Contents

Advertisement

Example 4: Multiple Channels Non-Realtime Data Collection

:PlotsOff
:ClrAllLists
:ClrHome
:Send({0})
:Send({6,4})
:Send({1,1,10})
:Send({1,2,11})
:Send({1,3,12})
:Send({3,.1,100,0})
:Get(L
)
2
:Get(L
)
3
:Get(L
)
4
:Get(L
)
1
:Plot1(Scatter,L
:ZoomStat
:Pause
:ClrHome
:PlotsOff
:Plot2(Scatter,L
:ZoomStat
:Pause
:ClrHome
:PlotsOff
:Plot3(Scatter,L
:ZoomStat

Example 5: Conversion Equation Setup (Command 4)

:ClrAllLists
:ClrHome
:Send({0})
:Send({6,4})
:Send({1,1,1,0,0,1})
:Send({3,.1,100,0})
:Send({4,1,M1})
:Get(L
)
2
:Get(L
)
1
:Send({4,1,7,50,5})
:Get(L
)
3
:Plot1(Scatter,L
:ZoomStat
:Pause
:ClrHome
:PlotsOff
:Plot2(Scatter,L
:ZoomStat
50
Reset CBL 2. (This clears CBL 2 RAM.)
Turn CBL 2 sound on.
Set up Channel 1 for temperature data collection in Centigrade.
Set up Channel 2 for temperature data collection in Fahrenheit.
Set up Channel 3 for light intensity data collection.
Take a sample every .1 second.
Retrieve temperature in Centigrade data to L
Retrieve temperature in Fahrenheit data to L
Retrieve light intensity data to L
Retrieve time data to L
,L
,.)
Plot temperature in Centigrade versus time.
1
2
,L
,.)
Plot temperature in Fahrenheit versus time.
1
3
,L
,.)
Plot light intensity versus time.
1
4
Reset CBL 2. (This clears CBL 2 RAM.)
Turn CBL 2 sound on.
Set up Channel 1 for data collection with conversion equation enabled.
Take a sample every .1 second.
Apply unary equation to return the raw data.
Retrieve raw data to L
Retrieve time data to L
Apply exponential equation type to the raw data.
Retrieve the converted data to L
,L
,.)
Plot raw data versus time.
1
2
,L
,.)
Plot the converted data versus time.
1
3
.
2
.
3
.
4
.
1
.
2
.
1
.
3
CBL 2 Technical Reference

Advertisement

Table of Contents
loading

Table of Contents