SC115 CS I/O 2G Flash Memory Drive with USB Interface
14
10.5.2 Resident Interval Mode Example
'Plug In and Leave – data baled from buffer to SC115 every 60 minutes
'In this example, the SC115 remains at the data logger as resident memory.
'This program avoids data corruption by setting TableFile() Interval to 60
'In this case, data is written only once an hour to the SC115.
Public
PanelTempC, BattVolt
DataTable
(Hourly,1,-1)
DataInterval
(0,1,Min,0)
TableFile
("USB:Hourly",8,-1,0,60,Min,0,0)
'SC115 resident mode with interval
Sample
(1,PanelTempC,FP2)
Minimum
(1,BattVolt,FP2,0,False)
EndTable
BeginProg
Scan
(10,Sec,3,0)
PanelTemp
(PanelTempC,250)
Battery
(BattVolt)
CallTable
Hourly
NextScan
EndProg
10.5.3 Resident Record Number Mode Examples
'Plug In and Leave – data baled from buffer to SC115 every 60 records
'In this example, the SC115 remains at the data logger as resident memory.
'This program avoids data corruption by setting TableFile() NumRecs to 60
'In this case, data is written only once an hour to the SC115.
Public
PanelTempC, BattVolt
DataTable
(Hourly,1,-1)
DataInterval
(0,1,Min,0)
TableFile
("USB:Hourly",8,-1,60,0,Min,0,0)
'SC115 resident mode with NumRecs
Sample
(1,PanelTempC,FP2)
Minimum
(1,BattVolt,FP2,0,False)
EndTable
BeginProg
Scan
(10,Sec,3,0)
PanelTemp
(PanelTempC,250)
Battery
(BattVolt)
CallTable
Hourly
NextScan
EndProg