4 cardflush example, 5 cardout example – Campbell Scientific SC115 CS I/O 2G Flash Memory Drive with USB Interface User Manual
Page 22

SC115 CS I/O 2G Flash Memory Drive with USB Interface
10.5.4 CardFlush Example
'In this example, the SC115 remains at the datalogger as resident memory.
'The Scan count, usually left at 0, is set to 600 in this application.
'To ensure complete collection of data, CardFlush instruction is included.
Public PanelTempC, BattVolt
DataTable (Test,1,-1)
DataInterval
(0,10,Sec,0)
TableFile ("USB:Test",8,-1,100,0,Hr,0,0) 'SC115 resident mode with NumRec
Sample
(1,PanelTempC,FP2)
Minimum
(1,BattVolt,FP2,0,False)
EndTable
BeginProg
' Scan stops at count 600 – Not enough time to transfer all data!
Scan
(100,mSec,3,600)
PanelTemp
(PanelTempC,250)
Battery
(BattVolt)
CallTable
Test
NextScan
CardFlush
'Included to ensure complete data transfer to SC115
EndProg
10.5.5 CardOut Example
'In this example, the SC115 and a CompactFlash® card are used as external memory.
Public PanelTempC, BattVolt
DataTable (Test,1,-1)
DataInterval
(0,1,Min,0)
CardOut
(0,-1)
TableFile ("USB:Test",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
Test
NextScan
EndProg
16