Appendix a. crbasic programming instructions – Campbell Scientific CR3000 Micrologger User Manual
Page 17

Table of Contents
17
Appendix A. CRBasic Programming Instructions .....475
A.1 Program Declarations........................................................................... 475
A.1.1 Variable Declarations & Modifiers............................................. 476
A.1.2 Constant Declarations................................................................. 477
A.2 Data-Table Declarations....................................................................... 477
A.2.1 Data-Table Modifiers.................................................................. 477
A.2.2 Data Destinations........................................................................ 478
A.2.3 Final Data Storage (Output) Processing ..................................... 479
A.2.3.1 Single-Source .................................................................... 479
A.2.3.2 Multiple-Source ................................................................ 480
A.3 Single Execution at Compile................................................................ 481
A.4 Program Control Instructions ............................................................... 481
A.4.1 Common Program Controls ........................................................ 481
A.4.2 Advanced Program Controls....................................................... 484
A.5 Measurement Instructions .................................................................... 485
A.5.1 Diagnostics ................................................................................. 485
A.5.2 Voltage ....................................................................................... 486
A.5.3 Thermocouples ........................................................................... 486
A.5.4 Resistive-Bridge Measurements ................................................. 486
A.5.5 Excitation.................................................................................... 487
A.5.6 Pulse and Frequency ................................................................... 488
A.5.7 Digital I/O................................................................................... 488
A.5.7.1 Control .............................................................................. 489
A.5.7.2 Measurement..................................................................... 489
A.5.8 SDI-12 ........................................................................................ 489
A.5.9 Specific Sensors.......................................................................... 490
A.5.9.1 Wireless Sensor Network.................................................. 492
A.5.10 Peripheral Device Support ........................................................ 492
A.6 Processing and Math Instructions......................................................... 495
A.6.1 Mathematical Operators.............................................................. 495
A.6.2 Arithmetic Operators .................................................................. 495
A.6.3 Bitwise Operators ....................................................................... 496
A.6.4 Compound-assignment operators ............................................... 497
A.6.5 Logical Operators ....................................................................... 497
A.6.6 Trigonometric Functions ............................................................ 498
A.6.6.1 Derived Functions ............................................................. 498
A.6.6.2 Intrinsic Functions............................................................. 499
A.6.7 Arithmetic Functions .................................................................. 500
A.6.8 Integrated Processing.................................................................. 502
A.6.9 Spatial Processing....................................................................... 502
A.6.10 Other Functions ........................................................................ 503
A.6.10.1 Histograms ...................................................................... 504
A.7 String Functions ................................................................................... 505
A.7.1 String Operations........................................................................ 505
A.7.2 String Commands ....................................................................... 505
A.8 Clock Functions ................................................................................... 508
A.9 Voice-Modem Instructions................................................................... 509
A.10 Custom Keyboard and Display Menus............................................... 510
A.11 Serial Input / Output........................................................................... 512
A.12 Peer-to-Peer PakBus Communications............................................... 513
A.13 Variable Management ........................................................................ 517
A.14 File Management................................................................................ 518
A.15 Data-Table Access and Management ................................................. 520
A.16 Information Services .......................................................................... 521