Section 9. Programming
90
9.11 Program Access to Data Tables
CRBASIC has syntax provisions facilitating access to data in tables or
information relating to a table. The syntax is entered directly into the CRBASIC
program through a variable name. The general form is:
"TableName.FieldName_Prc (Fieldname Index, Records Back)".
Where:
•
TableName
: name of the data table
•
FieldName
: name of the variable from which the processed value is derived
•
Prc
: Abbreviation of the name of the data process used. See
TABLE.
Abbreviations of Names of Data Processes
p. 90 for a complete list of these
abbreviations-not needed for values from Status or Public tables.
•
Fieldname Index
: Array element number (optional)
•
Records Back
: How far back into the table to go to get the value (optional)
Table 12.
Abbreviations of Names of Data
Processes
Abbreviation Process
Name
Tot Totalize
Avg Average
Max Maximum
Min Minimum
Std Standard
Deviation
Sample
WVc WindVector
ETsz ET
RSo
Solar Radiation (from ET)
TMx
Time of Max
TMn
Time of Min
For instance, to access the number of watchdog errors, use the
"Status.WatchDogCnt," where "Status" is the table name, and "WatchDogCnt"
is the field name.
Summary of Contents for CR200
Page 32: ...Section 2 Quickstart Tutorial 22 ...
Page 45: ...Section 3 Overview 35 3 3 Specifications ...
Page 46: ...Section 3 Overview 36 ...
Page 58: ...Section 4 Sensor Support 48 ...
Page 62: ...Section 5 Measurement and Control Peripherals 52 ...
Page 78: ...Section 8 CR200 X Configuration 68 ...
Page 102: ...Section 9 Programming 92 ...
Page 138: ...Section 11 Programming Resource Library 128 ...
Page 156: ...Section 16 Support Software 146 ...
Page 160: ...Section 17 Care and Maintenance 150 ...
Page 167: ...Section 18 Troubleshooting 157 18 3 3 2 Charging Circuit Test Solar Panel ...
Page 168: ...Section 18 Troubleshooting 158 18 3 3 3 Charging Circuit Test Transformer ...
Page 169: ...Section 18 Troubleshooting 159 18 3 3 4 Adjusting Charging Circuit Voltage ...
Page 170: ...Section 18 Troubleshooting 160 ...
Page 184: ...Appendix A Glossary 14 ...
Page 190: ...Appendix B Status Table and Settings 20 ...
Page 192: ...Appendix C Serial Port Pin Outs 22 ...
Page 211: ......