Campbell Scientific CR3000 Micrologger User Manual
Page 25

Table of Contents
25
CRBasic Example 4. Inserting Comments .................................................. 115
CRBasic Example 5. Load binary information into a variable.................... 117
CRBasic Example 6. Proper Program Structure.......................................... 118
CRBasic Example 7. Using a Variable Array in Calculations .................... 122
CRBasic Example 8. Using Variable Array Dimension Indices ................. 122
CRBasic Example 9. Data Type Declarations............................................. 125
CRBasic Example 10. Flag Declaration and Use........................................ 126
CRBasic Example 11. Initializing Variables............................................... 127
CRBasic Example 12. Using the Const Declaration ................................... 128
CRBasic Example 13. Foreign-Language Support ..................................... 130
CRBasic Example 14. Definition and Use of a Data Table......................... 132
CRBasic Example 15. BeginProg / Scan() / NextScan / EndProg Syntax .. 141
CRBasic Example 16. Scan Syntax............................................................. 141
CRBasic Example 17. Measurement Instruction Syntax............................. 145
CRBasic Example 18. Use of Expressions in Arguments........................... 146
CRBasic Example 19. Use of Arrays as Multipliers and Offsets................ 147
CRBasic Example 20. Conversion of FLOAT / LONG to Boolean............ 148
CRBasic Example 21. Evaluation of Integers ............................................. 149
CRBasic Example 22. Constants to LONGs or FLOATs ........................... 150
CRBasic Example 23. String and Variable Concatenation ......................... 152
CRBasic Example 24. Use of Variable Arrays to Conserve Code Space ... 155
CRBasic Example 25. Use of Move() to Conserve Code Space ................. 155
CRBasic Example 26. FieldCal() Zeroing Demonstration Program ........... 160
CRBasic Example 27. FieldCal() Offset Demo Program............................ 161
CRBasic Example 28. FieldCal() Zero Basis Demo Program..................... 163
CRBasic Example 29. FieldCal() Multiplier and Offset Demonstration
CRBasic Example 30. FieldCal() Multiplier-Only Demonstration
CRBasic Example 31. FieldCalStrain() Calibration Demonstration ........... 169
CRBasic Example 32. HTML ..................................................................... 175
CRBasic Example 33. Using Alternate Concurrent Command (aC)........... 186
CRBasic Example 34. Using SDI12Sensor() Command ............................ 187
CRBasic Example 35. Using an SDI-12 Extended Command.................... 189
CRBasic Example 36. SDI-12 Sensor Setup............................................... 190
CRBasic Example 37. Subroutine with Global and Local Variables .......... 192
CRBasic Example 38. Custom Menus ........................................................ 201
CRBasic Example 39. Conditional Compile............................................... 204
CRBasic Example 40. Receiving an RS-232 String.................................... 215
CRBasic Example 41. Measure Sensors / Send RS-232 Data..................... 220
CRBasic Example 42. Using TrigVar to Trigger Data Storage .................. 228
CRBasic Example 43. NSEC — One Element Time Array........................ 229
CRBasic Example 44. NSEC — Two Element Time Array ....................... 230
CRBasic Example 45. NSEC — Seven and Nine Element Time Arrays.... 230
CRBasic Example 46. NSEC —Convert Timestamp to Universal Time.... 231
CRBasic Example 47. Programming with Bool8 and a bit-shift operator .. 234
CRBasic Example 48. Inserting String Characters...................................... 244
CRBasic Example 49. Formatting Strings .................................................. 245
CRBasic Example 50. Two Data Intervals in One Data Table ................... 245
CRBasic Example 51. Program Signatures................................................. 247
CRBasic Example 52. Miscellaneous Features........................................... 248
CRBasic Example 53. Running Average and Running Total of Rain......... 251
CRBasic Example 54. Use of Multiple Scans............................................. 251
CRBasic Example 55. Groundwater Pump Test ......................................... 252
CRBasic Example 56. Scaling Array .......................................................... 255
CRBasic Example 57. Conditional Output.................................................. 256