Section 2. SimplePB.DLL Reference
return_data_len: Integer – Number of bytes in the data returned from the
datalogger.
Return Codes
0 = Successful.
1 = Success but more data to collect.
-1 = Communication timed out.
-2 = Port is not open.
Example of data returned by function call
"TIMESTAMP","RECORD", OSVersion, OSDate, OSSignature
2.11 GetCommaData()
Query the datalogger for only the values of a record and display those values in
a comma-separated format.
Syntax
GetData(pakbus_address, device_type, table_no, record_no, return_data,
return_data_len)
Parameters
pakbus_address: Integer – The PakBus address of the datalogger.
device_type: Integer – The type of datalogger:
•
1=CR200
•
2=CR10XPB, CR23XPB, CR510PB
•
3=CR1000
•
4=CR3000
•
5=CR800, CR850
table_no: Integer – The number for the table from which to collect data.
record_no: Integer – The record number where data collection will start. All
records following this record number will be included in the collection.
Therefore, if the record number is set to 0, all records in the table will be
collected. In addition, if the record number specified does not exist in the
datalogger, all existing records from the oldest to the newest will be returned.
However, if the record number is set to a negative number, only the most
recent record in the table will be collected. There is not a way to specify and
collect a single record from a table using this command unless that record is the
most recent record in the table.
2-8
Содержание BMP5 Direct SDK
Страница 2: ......
Страница 8: ......
Страница 10: ...Section 1 BMP5 Direct SDK Overview 1 2 ...
Страница 31: ......