Appendix b. public variables – Campbell Scientific CPEC200 Closed-Path Eddy-Covariance System User Manual
Page 71

Appendix B. Public Variables
Some of the variables in the CPEC200’s CRBasic program are included in the
Public table. These public variables may be displayed or edited with a
keyboard display or PC. Other program variables are hidden from the user to
reduce clutter in the
Public table. Many of these public variables are saved in
the output tables. Some of the public variables allow the user to set the
operation of the system or to give diagnostic information. The intended usage
of the public variables is categorized as follows:
IRGA measured by the EC155 gas analyzer
SONIC measured by the CSAT3A sonic anemometer
DIAG diagnostic
USER user setting
INFO provides information on system status
INFO/USER conditional user setting (may set if the sequence is stopped)
CONFIG system configuration parameter - saved in file sys_conf_var.dat.
Most of the public variables are defined all the time, but some are dependent
on compile constants. The public variables are listed in TABLE B-1.
TABLE B-1. CPEC200 public variables
When Defined
Usage
Variable Name
Units
Description
always
TIMESTAMP
TS
Date and time the record was
measured
always
RECORD
RN
Record number
always
DIAG
latest_note
Latest note written to the
message_log table
always
DIAG
mode_status
Operating state of the
CPEC200
always
DIAG
cpec_status
Overall status of the CPEC200
always
DIAG
irga_status
Status of the EC155
always
DIAG
sonic_status
Status of the CSAT3A
always
DIAG
pump_status
Status of the sample pump
always
DIAG
valve_status
Status of the valve module
always
DIAG
EC_mode
Boolean flag: True if the pump
is on and no zero/span
sequence is running
always
DIAG
diag_cpec
CPEC200 diagnostic word
always
DIAG
irga_OK
Boolean flag: True if no
problems are detected with the
EC155
always
DIAG
sonic_OK
Boolean flag: True if no
problems are detected with the
CSAT3A
always
DIAG
pump_flow_OK
Boolean flag: True if the pump
flow is within its normal range
always
SONIC
Ux
m∙s
-1
Wind velocity X component
always
SONIC
Uy
m∙s
-1
Wind velocity Y component
always
SONIC
Uz
m∙s
-1
Wind velocity Z component
B-1