Vernier LabPro User Manual
Page 32

Revision Date: 08/02/02
LabPro Technical Manual
32
Delta
– used for internal debugging purposes and should always be set to zero (0).
Post-Proc Value
Description
0
Not used but required as a place holder if EQU is specified
Equ
– indicates whether or not a conversion equation is applied to the data before it is returned. If
Equ set to 1, Command 4 must be sent prior to data collection to specify the equation.
Equ Value
Analog Channel (1 –4)
Sonic Channel (11, 12)
0
No conversion equation applied
No temperature compensation
1
Apply equation specified in
Command 4.
Compensate for temperature as set
in Command 4.
Return values: No information is returned.
Example 1: Clear all LabPro channels.
Computer
Calculator
s{1,0}
:Send({1,0})
Example 2: Clear Analog channel 3.
Computer
Calculator
s{1,3,0}
:Send({1,3,0})
Example 3: Set analog channel 2 to read 0 to 5V with all other channels off.
Computer
Calculator
s{1,0}
:Send({1,0})
s{1,2,14,0}
:Send({1,2,14,0})
…collect the data…
get time and channel 2 data
Example 4: Set analog channel 1 to read voltages in the range of –10 to +10 Volts, analog channel 2 to
read current and calculate the first order derivative of current.
Computer
Calculator
s{1,0}
:Send({1,0})
s{1,1,2,0}
:Send({1,1,2,0})
s{1,2,3,1}
:Send({1,2,3,1})
…collect the data…
get time, channel 1data, channel 2 data and the
derivative column
Alternate Command 1 Syntax:
One variation on Command 1 is used for setting the output value on the Digital Output channels. LabPro
outputs one element for each sample. Between samples, the output returns to 0 unless the user has
commanded the power to remain on (using Command 102, -1).