SC115 CS I/O 2G Flash Memory Drive with USB Interface
6
When data retrieval is required, 1) a second SC115 is swapped with the first, or
2) the SC115 is removed, milked of data (perhaps by copying or moving data
to a computer), and then reconnected to the data logger.
To avoid losing data when the SC115 is disconnected from the
data logger, the data logger must have sufficient storage memory
allocated in
DataTable()
/
EndTable
declarations in the form of
internal or external card memory to cover the period the SC115 is
not present.
8.2.1 Programming for the Resident Modes
A resident mode that collects data at regular intervals is enabled in the
TableFile()
instruction by entering zero or a positive value for the
NumRecs/TimeIntoInterval
parameter and entering a non-zero, positive value
for the
Interval
parameter. To collect data at uniform bale sizes, enter a non-
zero, positive value for the
NumRecs
parameter and enter zero for the
Interval
parameter.
Below are
TableFile()
instruction examples that enable resident modes. The
first
TableFile()
instruction sets the data logger to bale data to the SC115 at
midnight each day. The second
TableFile()
instruction sets the data logger to
send bales of 24 records to the SC115. See Section
(p. 14)
, for more detailed program code.
Use “CS9” as the drive name for GRANITE-series data loggers.
Use “USB” as the drive name for all other CRBasic data loggers.
TableFile("USB:
FileName
",8,-1,
0
,24,
Hr
,
0
,
0
)
'Interval trigger
TableFile("USB:
FileName
",8,-1,
24
,
0
,Hr,
0
,
0
)
'Number of records
trigger
9. Retrieving Data from SC115
To retrieve data from the SC115, plug it into a computer USB port. The SC115
becomes a memory drive on the computer, and data files can be copied, moved,
or deleted with the common file handling functions of Windows
®
. Multiple
SC115s can be connected to a computer simultaneously and data passed
between them. When used as a communications interface, however, only one
SC115 should be connected to a computer.
Before disconnecting the SC115 from the computer, run the
Safely Remove
Hardware
utility in Windows
®
.
10. Data Logger Programming
When used as a memory drive, the SC115 requires a
TableFile()
instruction in
the data logger CRBasic program.
TableFile()
creates a file from data table
records, and writes the file to the SC115. The
TableFile()
instruction must be
within the
DataTable()
/
EndTable
declaration.
NOTE
NOTE