beautypg.com

Appendix a. sample program table structure, Table 1 – status, Table 2 – user defined – Campbell Scientific BMP5 Direct SDK User Manual

Page 25: Table 4 – public or inlocs

background image

Appendix A. Sample Program Table
Structure

The table structure of a PakBus datalogger is given in the example below. This
example shows a datalogger with two user defined tables plus the Status table
and Public or Inlocs table. The second table in the example below contains
three records and the third table contains four records. Both the Status table
and Public or Inlocs table will always return the most recent records and will
not contain any historical data records.

The first table is the Status table, which shows the status of the datalogger.
The Public or Inlocs table contains all public variables or input locations. All
other tables found in the datalogger are created and defined by the user in the
datalogger program. The tables in a PakBus datalogger will always contain a
record number and timestamp followed by the data fields.

Table 1 – Status

Record No

Time Stamp

Data Field 1

Data Field 2

Data Field 3-19 Data Field 20

Table 2 – User Defined

RN 0

Time Stamp

Data Field 1

Data Field 2

RN 1

Time Stamp

Data Field 1

Data Field 2

RN 2

Time Stamp

Data Field 1

Data Field 2

Table 3 – User Defined

RN 0

Time Stamp

Data Field 1

Data Field 2

Data Field 3

Data Field 4

Data Field 5

RN 1

Time Stamp

Data Field 1

Data Field 2

Data Field 3

Data Field 4

Data Field 5

RN 2

Time Stamp

Data Field 1

Data Field 2

Data Field 3

Data Field 4

Data Field 5

RN 3

Time Stamp

Data Field 1

Data Field 2

Data Field 3

Data Field 4

Data Field 5

Table 4 – Public or Inlocs

Record No

Time Stamp

Data 1

Data 2

Data 3

Data 4

Data 5

Data 6

A-1