A.6 example crbasic program – Campbell Scientific EC150 CO2 and H2O Open-Path Gas Analyzer and EC100 Electronics with Optional CSAT3A 3D Sonic Anemometer User Manual
Page 60

Appendix A. EC150 Settings
complete. To perform CO
2
span, the CO
2
Span Concentration setting
(ConfigCmd 12) must be written to the proper value in ppm CO
2
prior to
setting the Span/Zero Control setting (ConfigCmd 11) to 2. After the CO
2
span
is completed, the value of the Span/Zero Control setting will change to
–2.
H
2
O span is similar to CO
2
. First the H
2
O Dew Point value (ConfigCmd 13)
must be written to the desired value. Then the Span/Zero Control setting is set
to
3. After the EC150 completes the span, the span control setting is written as
–3. ConfigCmds 14 through 17 automatically store the results of the zero-and-
span procedure. Each result is a coefficient used in the gas analyzer’s
algorithms for calculating gas concentrations.
A.6 Example CRBasic Program
'CR3000 Series Datalogger
Public sonic_irga(12)
Alias sonic_irga(1) = Ux
Alias sonic_irga(2) = Uy
Alias sonic_irga(3) = Uz
Alias sonic_irga(4) = Ts
Alias sonic_irga(5) = diag_sonic
Alias sonic_irga(6) = CO2
Alias sonic_irga(7) = H2O
Alias sonic_irga(8) = diag_irga
Alias sonic_irga(9) = cell_tmpr
Alias sonic_irga(10) = cell_press
Alias sonic_irga(11) = CO2_sig_strgth
Alias sonic_irga(12) = H2O_sig_strgth
Units Ux = m/s
Units Uy = m/s
Units Uz = m/s
Units Ts = C
Units diag_sonic = arb
Units CO2 = mg/m^3
Units H2O = g/m^3
Units diag_irga = arb
Units cell_tmpr = C
Units cell_press = kPa
Units CO2_sig_strgth = arb
Units H2O_sig_strgth = arb
DataTable (ts_data,TRUE,-1)
DataInterval (0,0,mSec,10)
Sample (12,Ux,IEEE4)
EndTable
BeginProg
Scan (100,mSec,0,0)
EC100 (Ux,1,1)
CallTable ts_data
NextScan
EndProg
A-12