2 enhanced data collection mode example, 2 resident interval mode example – Campbell Scientific SC115 CS I/O 2G Flash Memory Drive with USB Interface User Manual

Page 20

Advertising
background image

SC115 CS I/O 2G Flash Memory Drive with USB Interface

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

10.5.1.2 Enhanced Data Collection Mode Example

'Plug – Retrieve All Data – Pull

'In this example, the SC115 is connected to the datalogger to retrieve all of

'the data stored in datalogger memory. It only retrieves data that were already
'stored in the datalogger memory when it was connected. To retrieve subsequent
'data, the SC115 must be disconnected and then reconnected to the datalogger.

Public PanelTempC, BattVolt


DataTable (Test,1,-1)

DataInterval (0,60,Min,0)

TableFile

("USB:"+Status.SerialNumber+"_Filename",8,-1,0,-1,Min,0,0)

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

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 datalogger as resident memory.
'This program avoids data corruption by setting TableFile() Interval to 60

'In this case, data are written only once an hour to the SC115.

Public PanelTempC, BattVolt


DataTable (Test,1,-1)
DataInterval

(0,1,Min,0)

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

14

Advertising