beautypg.com

Campbell Scientific ID-2000W Software User Manual

Page 63

background image

SECTION 6. IMPORT/EXPORT

6-9

NOTE 2:
If time data is included in the data file this structure array will not be present. If time is to be
calculated then the rate information must be contained in an array of the following C language
structures:

struct RATES

{

unsigned long

4 bytes

Scan number where rate changed.

First rate must be set with a scan
number of 0.

double

8 bytes

Rate in seconds/scan.
(Remember that a scan is one
reading of every parameter)

}[number of scanrates]

The RATES structure array, as well as all ID-2000 structures, are packed on 2 byte boundaries
for performance.

If your data file was recorded at a single constant rate you would use a value of 1 for the number
of rates and the RATES structure would contain just one entry for the two elements.

Now assume that your data file was recorded with the rate being changed three times during the
recording. It started out at 100 scans per second (0.01). At scan number 1150 the rate was
changed to 1000 scans per second (0.001). And finally at scan number 6750 the rate was
changed to 10 scans per second (0.1). The RATES structure array would be filled out as
follows:

ARRAY ENTRY

SCAN NUMBER

RATE

0

0

0.01

1

1150

0.001

2

6750

0.1

NOTE 3:
The parameter information is contained in the following array of C language structures:

struct CHAN

{

string

15 + NULL

Name of parameter

string

15 + NULL

Parameter units

double

8

Minimum data value for this parameter

double

8

Maximum data value for this parameter

}[ number of parameters]