2 resident mode, 1 programming for the resident modes, Retrieving data from sc115 – Campbell Scientific SC115 CS I/O 2G Flash Memory Drive with USB Interface User Manual

Page 13

Advertising
background image

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

8.2 Resident Mode

Resident modes increase the risk of data corruption. Review
Section 12.1, Preventing Data Corruption before employing a
resident mode.

NOTE

In the resident modes, the SC115 remains attached to a single datalogger
allowing it to be used as resident external memory. The datalogger can be
programmed to bale data to the SC115 at regular intervals or at uniform bale
sizes.

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 laptop computer), and then reconnected to the datalogger.

To avoid losing data when the SC115 is disconnected from the
datalogger, the datalogger must have sufficient storage memory
allocated in DataTable() / EndTable declarations in the form of
internal or CompactFlash

®

1

memory to cover the period the

SC115 is not present.

NOTE

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 datalogger to bale data to the SC115 at
midnight each day. The second TableFile() instruction sets the datalogger to
send bales of 24 records to the SC115. See Section 10.5.2, Resident Interval
Mode Example
for more detailed program code.

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

Install PC software drivers BEFORE connecting the SC115. See Section 7.2,
PC Preparation.

To collect data from the SC115, plug it into a PC USB port. The SC115
becomes a memory drive on the PC, and data files can be copied, moved, or
deleted with the common file handling functions of Windows

®

. Multiple

SC115s can be connected to a PC simultaneously and data passed between
them. Connecting a second SC115 may require installing the device driver a
second time. When used as a communications interface, however, only one
SC115 should be connected to a PC.

Before disconnecting the SC115 from the PC, run the Safely Remove
Hardware
utility in Windows.

7

Advertising