Return codes, Example of data returned by function call, Syntax – Campbell Scientific BMP5 Direct SDK User Manual
Page 15: Parameters, 8 setvalue()

Section 2. SimplePB.DLL Reference
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
12.753,111.9,1.239
(Swath of 3 values from fields)
2.8 SetValue()
Set a value in the datalogger.
Syntax
SetValue(pakbus_address, device_type, table_name, field_name, value)
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_name: String – The name of the table in which the field will be set.
field_name: String – The field that will be set with the new value.
value: String – The value used to set the field.
Return Codes
0 = Successful.
-1 = Communication timed out.
-2 = Port is not open.
2-5