System information

Section 4. The CR1000 Type Datalogger
4-9
The response packet from the datalogger will contain data that must be parsed.
The application uses table definition information to understand the data
structure in the packet in order to extract the appropriate information from the
response packet.
4.10.1 Interpreting Data Types
The data type determines how each value should be handled by the application.
The Appendix includes a table for some of the data types that might be
encountered when collecting data from or sending data to a CR1000 type
datalogger.
4.10.2 Data Collection Sequence
The following steps should be used when collecting data from the CR1000 type
datalogger:
Get the current table definitions if necessary by using the File Upload
transaction.
When table definitions are returned, parse the table information from the
response packet. This information should be saved and used when collecting
data records. Each table signature should be calculated, saved, and then used
when requesting data from the datalogger.
Use the Collect Data Transaction to initiate data collection from the CR1000
type datalogger and parse the data contained in the Collect Data Response
packet.
4.10.3 Collecting Tables and Specific Records
Within the Collect Data Command message there are many options for data
collection. The CollectMode parameter of this packet describes what records
will be collected from the defined tables. Some collect mode options include:
CollectMode 0x03: Collect from the oldest record to the newest record
starting with the oldest data in each table. This method of collection
would be used to collect entire data tables.
CollectMode 0x04: Collect from a defined record to the newest record in
the tables defined. If the defined starting record doesn’t exist in the
datalogger, data collection will start from the oldest record in the table.
CollectMode 0x05: Collect the most recent records, where the number of
records to collect is a definable parameter.
CollectMode 0x06: Collect from a defined record up to but not including a
second defined record. This method of collection would be useful to
collect a specific subset of records from the datalogger.