Crbasic programming instructions, Programming resource library – Campbell Scientific CR200/CR200X-series Dataloggers User Manual
Page 7

Table of Contents
9.7
Declarations II - Declared Sequences .................................................................. 77
9.7.1
Data Tables ............................................................................................. 77
9.7.2
Subroutines ............................................................................................. 83
9.8
Program Execution Timing .................................................................................. 83
9.9
Instructions ........................................................................................................... 84
9.9.1
Measurement and Data Storage Processing ............................................ 84
9.9.2
Parameter Types ..................................................................................... 85
9.9.3
Names in Parameters .............................................................................. 85
9.9.4
Expressions in Parameters ...................................................................... 86
9.9.5
Arrays of Multipliers and Offsets ........................................................... 86
9.10
Expressions ........................................................................................................ 87
9.10.1
Floating Point Arithmetic ....................................................................... 87
9.10.2
Mathematical Operations ........................................................................ 87
9.10.3
Logical Expressions ................................................................................ 88
9.11
Program Access to Data Tables .......................................................................... 90
Section 10.
CRBASIC Programming Instructions .... 93
10.1
Program Declarations ........................................................................................... 93
10.1.1
Variable Declarations & Modifiers ......................................................... 93
10.1.2
Constant Declarations ............................................................................. 93
10.2
Data Table Declarations ..................................................................................... 94
10.2.1
Data Table Modifiers .............................................................................. 94
10.2.2
Data Storage Output Processing ............................................................. 94
10.3
Single Execution at Compile .............................................................................. 95
10.4
Program Control Instructions ............................................................................. 96
10.4.1 Common Controls ................................................................................... 96
10.5
Measurement Instructions .................................................................................. 98
10.5.1
Diagnostics ............................................................................................. 98
10.5.2
Voltage .................................................................................................... 98
10.5.3
Pulse ........................................................................................................ 98
10.5.4
Digital I/O ............................................................................................... 99
10.5.5
SDI-12..................................................................................................... 99
10.6
Processing and Math Instructions ..................................................................... 100
10.6.1
Mathematical Operators ........................................................................ 100
10.6.2
Logical Operators ................................................................................. 100
10.6.3
Trigonometric Functions ....................................................................... 101
10.6.4
Arithmetic Functions ............................................................................ 102
10.6.5
Spatial Processing ................................................................................. 103
10.6.6
Other Functions..................................................................................... 104
10.7
Clock Functions................................................................................................ 104
10.8
Serial Input / Output ......................................................................................... 105
10.9
Peer-to-Peer PakBus Communications ............................................................. 105
10.10
Data Table Access and Management ............................................................. 106
10.11
SCADA ......................................................................................................... 107
10.12
Satellite Systems Programming ..................................................................... 108
10.12.1
GOES .................................................................................................... 108
Section 11.
Programming Resource Library ........... 109
11.1
Remote Sensor Interface .................................................................................... 109
11.2
Radio Power Minimization ................................................................................ 110
11.3
Multiple Switch Closure Measurements ............................................................ 112
11.4
SDI-12 Sensor Support ...................................................................................... 112
11.4.1
SDI-12 Command Basics ...................................................................... 112
11.4.2
SDI-12 Communications ...................................................................... 116
iii