Example 12: Command 9 Program; Example 13: Command 10 Program - 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 12: Command 9 Program

This is a program used to read a single data point.
:Send({0})
:Send({1,1,1})
:Send({9,1,0})
:Get(A)
:Disp A

Example 13: Command 10 Program

This program uses Command 10 with the TI temperature sensor. This test is used to find
a sinusoidal-like pattern in temperature as it rises and falls constantly in an experiment
that lasts 10 minutes.
:Send({0})
:Send({1,1,1})
:Send({3,6,100,0})
:Get(L
)
1
:Send({10,1,1,20,80,5})
:Get(A)
:A/6üB
:Disp B
CBL 2 Technical Reference
Clear sampling settings.
Auto-ID a TI temperature sensor.
Send Command 9 to get a single data point from Channel 1.
Get the single data point.
Display the one data point.
Clear sampling settings.
Auto-ID the TI temperature sensor.
Collect 1 sample every 6 seconds for 10 minutes.
Get the data for later use or display.
Send the advanced data reduction command with the heartbeat algorithm.
Set the lower threshold to 20% above the minimum point. Set the upper
threshold to 80% above the minimum point. Set the standard temperature
variance to 5¡C. If the maximum temperature minus the minimum
temperature is less than 5¡C, then the test proves there are no oscillations
in temperature outside of 5¡C in the 10-minute experiment. If the variance
is more than 5¡C, then this will count how many times it goes over the 80%
threshold level plus how many times it goes below the 20% threshold level.
Get the number of times the samples went above the upper threshold and
went below the lower threshold (the edge count). If the data range was less
than 5¡C, the result is zero.
Divide the edges per sample by the sample time. This returns true
frequency (edges per second).
Display the frequency.
53

Advertisement

Table of Contents
loading

Table of Contents