Example 6: Data Control Setup (Command 5); Example 7: Digital In Data Collection; Example 8: Digital Out - 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 6: Data Control Setup (Command 5)

:ClrAllLists
:ClrHome
:Send({0})
:Send({6,4})
:Send({1,2,11})
:Send({3,.1,100,0})
:Get(L
)
2
:Get(L
)
1
:Send({5,2,0,35,45})
:Get(L
)
3

Example 7: Digital In Data Collection

:ClrAllLists
:ClrHome
:Send({0})
:Send({6,4})
:Send({1,21,1})
:Send({3,.1,100,0})
:Get(L
)
2
:Get(L
)
1
:Disp L
2
:Disp L
1

Example 8: Digital Out

:ClrAllLists
:ClrHome
:Send({0})
:Send({6,4})
:Send({102,M1})
:Send({1,31,16,0,1,2,3,
4,5,6,7,8,9,10,11,12,13
,14,15})
:Send({3,.5,10,0})
:Disp "WHEN SAMPLING"
:Disp "COMPLETED"
:Disp "PRESS ENTER"
:Disp "TO TURN"
:Disp "POWER OFF"
:Pause
:Send({0})
CBL 2 Technical Reference
Reset CBL 2. (This clears CBL 2 RAM.)
Turn CBL 2 sound on.
Set up Channel 2 for temperature data collection in Fahrenheit.
Take a sample every .1 second.
Retrieve temperature in Fahrenheit data to L
Retrieve time data to L
.
1
Process temperature data 35 through 45 for retrieval.
Retrieve temperature data 35 through 45 to L
Reset CBL 2. (This clears CBL 2 RAM.)
Turn CBL 2 sound on.
Set up Channel 21 (Digital In) for digital data collection.
Take a sample every .1 second.
Retrieve collected digital data to L
Retrieve time data to L
.
1
Display collected digital data.
Display time.
Reset CBL 2. (This clears CBL 2 RAM.)
Turn CBL 2 sound on.
Turn power on if external LED is to display the Digital Out.
Set up Channel 31 (Digital Out) to output listed values to digital in source.
Every .5 second send the digital out value to the digital in source.
Reset CBL 2 to turn power off.
.
2
.
3
.
2
51

Advertisement

Table of Contents
loading

Table of Contents