CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
CR200/CR200X Series Dataloggers - Campbell Scientific
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Section 9. Programming<br />
9.11 Program Access to Data Tables<br />
CRBASIC has syntax provisions facilitating access to data in tables or<br />
information relating to a table. The syntax is entered directly into the CRBASIC<br />
program through a variable name. The general form is:<br />
"TableName.FieldName_Prc (Fieldname Index, Records Back)".<br />
Where:<br />
• TableName: name of the data table<br />
• FieldName: name of the variable from which the processed value is derived<br />
• Prc: Abbreviation of the name of the data process used. See TABLE.<br />
Abbreviations of Names of Data Processes p. 90 for a complete list of these<br />
abbreviations-not needed for values from Status or Public tables.<br />
• Fieldname Index: Array element number (optional)<br />
• Records Back: How far back into the table to go to get the value (optional)<br />
Table 12. Abbreviations of Names of Data<br />
Processes<br />
Abbreviation<br />
Tot<br />
Avg<br />
Max<br />
Min<br />
Std<br />
Process Name<br />
Totalize<br />
Average<br />
Maximum<br />
Minimum<br />
Standard Deviation<br />
Sample<br />
WVc<br />
ETsz<br />
RSo<br />
TMx<br />
TMn<br />
WindVector<br />
ET<br />
Solar Radiation (from ET)<br />
Time of Max<br />
Time of Min<br />
For instance, to access the number of watchdog errors, use the<br />
"Status.WatchDogCnt," where "Status" is the table name, and "WatchDogCnt"<br />
is the field name.<br />
90