Hi
I need to do a simple validation, but i tried with several ways with no positive results.
I need a routine or code that makes start saving some parameters only when the next minute starts (ex : actual datalogger time 15:42:27 , it has to start saving at 15:43:00) and then keep saving all the data all the time, the validation only has to be done when the program starts.
how could i do that?
thanks!
* Last updated by: maurixio on 9/29/2015 @ 12:23 PM *
Use a boolean variable to enable data processing on the table. You can use an If IfTime Then combination to set the variable.
Public PTemp, batt_volt
Dim EnableTable As Boolean = false
'Define Data Tables.
DataTable (Test,EnableTable,9999) 'Set table size to # of records, or -1 to autoallocate.
DataInterval (0,15,Sec,10)
Minimum (1,batt_volt,FP2,0,False)
Sample (1,PTemp,FP2)
EndTable
'Main Program
BeginProg
Scan (1,Sec,0,0)
PanelTemp (PTemp,250)
Battery (batt_volt)
CallTable Test
'If placed after CallTable, the first sample going to the table will be on the first scan after the top of the minute
If IfTime (0,1,min) Then EnableTable = True
NextScan
EndProg