Instead of saving the data of a CRBasic data logger to one large file, how can it be saved in daily, hourly, or half-hourly files?

Option 1

Update the data logger OS to the most current version. Use the TableFile() instruction with Option 64 to create smaller files. For more information, see the “A Better Way to Write High-Frequency Data to 16 GB and Smaller CF Cardsapplication note.

Option 2

In the CRBasic program, set up multiple data tables using the DataTable() instruction. In each table, specify the desired output interval using the DataInterval() instruction.

For example, the following three table definitions could be included in a program to store values once a day, once an hour, and every minute.

DataTable (Daily,1,1000)
                DataInterval (0,24,Hr,10)                 
                Minimum (1,batt_volt,FP2,0,False)
                Sample (1,PTemp,FP2)
EndTable

 

DataTable (Hourly,1,1000)
                DataInterval (0,1,Hr,10)
                Minimum (1,batt_volt,FP2,0,False)
                Sample (1,PTemp,FP2)
EndTable

 

DataTable (OneMinute,1,1000)
                DataInterval (0,1,Min,10)
                Minimum (1,batt_volt,FP2,0,False)
                Sample (1,PTemp,FP2)
EndTable

Das war hilfreich

FAQs Home