Appendix a. crbasic programming instructions – Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual
Page 16

Table of Contents
16
10.4.1 RS-232....................................................................................... 411
10.4.2 Communicating with Multiple PCs ........................................... 411
10.4.3 Comms Memory Errors ............................................................. 411
10.4.3.1 CommsMemFree(1) ......................................................... 411
10.4.3.2 CommsMemFree(2) ......................................................... 413
10.4.3.3 CommsMemFree(3) ......................................................... 413
10.5 Power Supplies.................................................................................... 414
10.5.1 Overview ................................................................................... 414
10.5.2 Troubleshooting Power at a Glance........................................... 415
10.5.3 Diagnosis and Fix Procedures.................................................... 415
10.5.3.1 Battery Test ...................................................................... 415
10.5.3.2 Charging Regulator with Solar-Panel Test....................... 416
10.5.3.3 Charging Regulator with Transformer Test ..................... 418
10.5.3.4 Adjusting Charging Voltage............................................. 419
10.6 Terminal Emulator .............................................................................. 421
10.6.1 Serial Talk Through and Sniffer ................................................ 424
Section 11. Glossary.....................................................425
11.1 Terms .................................................................................................. 425
11.2 Concepts.............................................................................................. 449
11.2.1 Accuracy, Precision, and Resolution ......................................... 449
Appendix A. CRBasic Programming Instructions .....451
A.1 Program Declarations ........................................................................... 451
A.1.1 Variable Declarations & Modifiers............................................. 452
A.1.2 Constant Declarations ................................................................. 453
A.2 Data-Table Declarations....................................................................... 453
A.2.1 Data-Table Modifiers.................................................................. 453
A.2.2 Data Destinations........................................................................ 454
A.2.3 Final Data Storage (Output) Processing...................................... 455
A.2.3.1 Single-Source .................................................................... 455
A.2.3.2 Multiple-Source................................................................. 456
A.3 Single Execution at Compile ................................................................ 457
A.4 Program Control Instructions ............................................................... 457
A.4.1 Common Program Controls ........................................................ 457
A.4.2 Advanced Program Controls....................................................... 460
A.5 Measurement Instructions .................................................................... 461
A.5.1 Diagnostics ................................................................................. 461
A.5.2 Voltage........................................................................................ 462
A.5.3 Thermocouples ........................................................................... 462
A.5.4 Resistive-Bridge Measurements ................................................. 462
A.5.5 Excitation.................................................................................... 463
A.5.6 Pulse and Frequency ................................................................... 463
A.5.7 Digital I/O................................................................................... 464
A.5.7.1 Control............................................................................... 464
A.5.7.2 Measurement ..................................................................... 464
A.5.8 SDI-12 ........................................................................................ 465
A.5.9 Specific Sensors.......................................................................... 465
A.5.9.1 Wireless Sensor Network .................................................. 467
A.5.10 Peripheral Device Support ........................................................ 468
A.6 Processing and Math Instructions......................................................... 470
A.6.1 Mathematical Operators.............................................................. 470
A.6.2 Arithmetic Operators .................................................................. 471
A.6.3 Bitwise Operators ....................................................................... 471