beautypg.com

Return codes, Example of data returned by function call, 7 getvalue() – Campbell Scientific BMP5 Direct SDK User Manual

Page 14: Syntax, Parameters

background image

Section 2. SimplePB.DLL Reference

return_data: Char – The location in memory where the data returned from the
datalogger exists.

return_data_len: Integer – Number of bytes in the data returned from the
datalogger.

Return Codes

0 = Successful.
-1 = Communication timed out.
-2 = Port is not open.

Example of data returned by function call

14:22:51 04/16/2004 (Old Time Old Date)
14:22:27 04/16/2004 (New Time New Date)

2.7 GetValue()

Query the datalogger for a value or group of values.

Syntax

GetValue(pakbus_address, device_type, swath, table_name, field_name,
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

swath: Integer – The range within an indexed variable array to collect starting
at the location described in the field_name parameter. The requested swath
must be within the bounds of the indexed array or an error will occur.

table_name: String – The name of the table in the datalogger to collect.

field_name: String – The name of the field in the table where collection of
values should start.

return_data: Char – The location in memory where the data returned from the
datalogger exists.

2-4