4.4.1 DataTable() and EndTable()
As already shown, data table declartion begins with the DataTable() instruction
and ends with the EndTable instruction.
DataTable(Table_Indoor,True,-1)
...
EndTable
Between these instructions that define what data are to store and under what con-
ditions data are stored. A data table must be called by the CRBASIC program for
data storage processing to occur. Typically, data tables are called by the CallTable()
instruction once each scan in the main program.
The DataTable instruction has three parameters:
• Name - name of data table up to 20 characters
• TrigVar - trigger conditions true or false
• Size - table size is set to a fixed number of records or to autoallocate function
In that case the table name is Table_Indoor with a trigger variabel set to true to
run the table and a size set to automatically allocated memory limit by using the
expression -1.
4.4.2 DataInterval()
DataInterval() sets the period in which data are stored. It has four parameters:
• TintInt - time into interval for offest
• Interval - how often data will be stored
• Units - specify units on which the TintInt and Interval argument will be based
• Lapses - number of lapses or gaps in the interval to track
42
Commentaires sur ces manuels