Appendix A. CRBasic Programming Instructions
Syntax
Dim [variable name (x,y,z)]
ESSVariables
Automatically declares variables required by an Environmental Sensor Station
application. Used in conjunction with ESSInitialize.
Syntax
ESSVariables
NewFieldNames
Assigns a new name to a generic variable or array. Designed for use with
Campbell Scientific wireless sensor networks.
Syntax
NewFieldNames(GenericName, NewNames)
PreserveVariables
Retains values in Dim or Public variables when the CRBasic program restarts
after a power failure, manual stop, or other operations that cause the program to
recompile.
Syntax
PreserveVariables
Public
Declares and dimensions public variables. Dimensions are optional.
Syntax
Public [variable name (x,y,z)]
ReadOnly
Flags a comma separated list of variables (Public or Alias name) as read-only.
Syntax
ReadOnly [variable1, variable2, ...]
Units
Assigns a unit name to a field associated with a variable.
Syntax
Units [variable] = [unit name]
A.1.2 Constant Declarations
Const
Declares symbolic constants for use in place of numeric entries.
539