Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 11

Table of Contents
11
7.8.2.9 Micro-Serial Server............................................................ 173
7.8.2.10 Modbus TCP/IP................................................................ 173
7.8.2.11 DHCP............................................................................... 173
7.8.2.12 DNS ................................................................................. 173
7.8.2.13 SMTP ............................................................................... 173
7.8.3 SDI-12 Sensor Support................................................................ 173
7.8.3.1 SDI-12 Transparent Mode.................................................. 174
7.8.3.1.1 SDI-12 Transparent Mode Commands..................... 175
7.8.3.2 SDI-12 Programmed Modes .............................................. 178
7.8.3.2.1 SDI-12 Recorder Mode ............................................ 178
7.8.3.2.2 SDI-12 Sensor Mode ................................................ 185
7.8.3.3 SDI-12 Power Considerations............................................ 186
7.8.4 Subroutines .................................................................................. 188
7.8.5 Wind Vector ................................................................................ 189
7.8.5.1 OutputOpt Parameters........................................................ 190
7.8.5.2 Wind Vector Processing..................................................... 190
7.8.5.2.1 Measured Raw Data ................................................. 191
7.8.5.2.2 Calculations .............................................................. 191
7.8.6 Custom Menus............................................................................. 194
7.8.7 Conditional Compilation ............................................................. 199
7.8.8 Serial I/O ..................................................................................... 201
7.8.8.1 Introduction........................................................................ 202
7.8.8.2 I/O Ports ............................................................................. 203
7.8.8.3 Protocols ............................................................................ 203
7.8.8.4 Glossary of Terms.............................................................. 204
7.8.8.5 CRBasic Programming ...................................................... 205
7.8.8.5.1 Input Instruction Set Basics...................................... 206
7.8.8.5.2 Input Programming Basics ....................................... 207
7.8.8.5.3 Output Programming Basics..................................... 208
7.8.8.5.4 Translating Bytes...................................................... 209
7.8.8.5.5 Memory Considerations ........................................... 210
7.8.8.5.6 Demonstration Program............................................ 211
7.8.8.6 Testing Applications .......................................................... 212
7.8.8.6.1 Configure HyperTerminal ........................................ 212
7.8.8.6.2 Create Send Text File ............................................... 215
7.8.8.6.3 Create Text-Capture File .......................................... 215
7.8.8.6.4 Serial Input Test Program......................................... 215
7.8.8.7 Q & A................................................................................. 221
7.8.9 TrigVar and DisableVar — Controlling Data Output and
Processing...................................................................................... 223
7.8.10 NSEC Data Type ....................................................................... 224
7.8.10.1 NSEC Options.................................................................. 225
7.8.11 Bool8 Data Type........................................................................ 228
7.8.12 Faster Measurement Rates......................................................... 232
7.8.12.1 Measurements from 1 Hz to 100 Hz ................................ 233
7.8.12.2 Measurement Rate: 101 to 600 Hz................................... 234
7.8.12.2.1 SubScan() / NextSubScan Details .......................... 235
7.8.12.3 Measurement Rate: 601 to 2000 Hz................................. 236
7.8.13 String Operations....................................................................... 237
7.8.13.1 String Operators ............................................................... 238
7.8.13.2 String Concatenation........................................................ 239
7.8.13.3 String NULL Character.................................................... 239
7.8.13.4 Inserting String Characters............................................... 240
7.8.13.5 Extracting String Characters ............................................ 240
7.8.13.6 String Use of ASCII / ANSII Codes ................................ 240
7.8.13.7 Formatting Strings............................................................ 241