beautypg.com

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

Page 19: 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 = Success but more data to collect.
-1 = Communications timed out.
-2 = Port is not open.

Example of data returned by function call

"2005-09-08 14:13:47",1,"CR1000.Std.05","050624",47178

2.12 File_Send()

Send a program to the datalogger.

Syntax

File_Send(pakbus_address, device_type, file_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

file_name: String – The path and file name of the program to be sent.

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.

2-9