Table of Contents
viii
Table 32. Primary Power Sources availabl
e from Campbell Scientific...............Ap. 30
Table 33. Enclosure available fr
om Campbell Scientific ....................................Ap. 31
Table 34. Relay Driver available f
rom Campbell Scientific................................Ap. 31
Table 35. Serial Cables, Adaptors and Switches available from Campbell
Scientific
.......................................................................................................Ap. 31
Table 36. Current Shunt Modules available f
rom Campbell Scientific...............Ap. 32
Table 37. Telecommunications Hardware available from Campbell Scientific ..Ap. 32
Table 38. Antennas for Spread Spectrum Radios available from Campbell
Scientific
.......................................................................................................Ap. 32
Table 39. PakBus Leaf Node and R
outer Device Configuration.........................Ap. 33
Table 40. CR200(X) Telecom
munications Options ............................................Ap. 33
Table 41. Network Links available fr
om Campbell Scientific ............................Ap. 33
Table 42. Voltage Transient Suppressors available from Campbell Scientific ...Ap. 34
List of CRBasic Examples
CRBASIC EXAMPLE 1. Inserting Comments..........................................................69
CRBASIC EXAMPLE 2. Load binary information into a s
ingle variable.................71
CRBASIC EXAMPLE 3. Proper Program
Structure .................................................73
CRBASIC EXAMPLE 4. Using a variable a
rray in calculations...............................75
CRBASIC EXAMPLE 5. Flag Declaration and
Use..................................................76
CRBASIC EXAMPLE 6. Using t
he Const Declaration .............................................76
CRBASIC EXAMPLE 7. Alias
and Unit Declaration ...............................................77
CRBASIC EXAMPLE 8. Definition and
Use of a Data Table ..................................80
CRBASIC EXAMPLE 9. Use of the
Disable Variable..............................................82
CRBASIC EXAMPLE 10. Use of a
Subroutine ........................................................83
CRBASIC EXAMPLE 11. BeginProg / Sca
n / NextScan / EndProg Syntax.............84
CRBASIC EXAMPLE 12. Measurem
ent Instruction Syntax ....................................84
CRBASIC EXAMPLE 13. Use of E
xpressions in Parameters...................................86
CRBASIC EXAMPLE 14. Use of Arrays as
Multipliers and Offsets........................86
CRBASIC EXAMPLE 15. Use of Variable Arrays to Conserve Code Space ...........88
CRBASIC EXAMPLE 16. Example Wireless Se
nsor Program For CR200(X) ......109
CRBASIC EXAMPLE 17. CRBASIC EXAMPLE. Rad
io Power Minimization
Program Examples .............................................................................................111
CRBASIC EXAMPLE 18. CRBASIC EXAMPLE. Two
Rain Gages on a
CR200(X)...........................................................................................................112
CRBASIC EXAMPLE 19. Using TrigVar t
o Trigger Data Storage ........................126
CRBASIC EXAMPLE 20. CRBASIC EXAMPLE.
Programming for two data
intervals in one data table...................................................................................127
CRBASIC EXAMPLE 21. Using NAN in
Expressions...........................................153