Datalogger programming with crbasic, 1 ec100() instruction, Ec100() instruction – Campbell Scientific EC155 CO2 and H2O Closed-Path Gas Analyzer and EC100 Electronics with Optional CSAT3A 3D Sonic Anemometer User Manual
Page 47: N 10

EC155 CO
2
and H
2
O Closed-Path Gas Analyzer
10. Datalogger Programming with CRBasic
CRBasic supports two instructions to communicate with the EC100 via SDM.
The first is the
EC100() instruction, which reads measurement data from the
EC100. The second is the
EC100Configure() instruction, which receives and
sends configuration settings.
10.1 EC100() Instruction
The
EC100() instruction is used to retrieve data from the EC155 via SDM.
The instruction syntax is:
EC100(Dest,SDMAddress,EC100Cmd)
Dest is the input variable name in which to store the data from the EC155. The
length of the input variable array will depend on the selected value for the
EC100CMd. A value of -99999 will be loaded into Dest(1) if a signature error
on SDM data occurs.
Command
Input Variable Length
0
8
1
12
2
13
SDMAddress defines the address of the EC155 with which to communicate.
Valid SDM addresses are 0 through 14. Address 15 is reserved for the
SDMTrigger() instruction.
EC100Cmd is a parameter that requests the data to be retrieved from the
analyzer. The results for the command will be returned in the array specified
by the Dest parameter. A numeric code is entered to request the data, as shown
37