beautypg.com

Parameters, Return codes – Campbell Scientific BMP5 Direct SDK User Manual

Page 24

background image

Section 2. SimplePB.DLL Reference

2-14

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 to be controlled on the datalogger.

command: Integer - The command issued to control the file:

1 = Compile and run

2 = Run on power up

3 = Make hidden

4 = Delete file

5 = Format device

6 = Compile and run (Preseve data if no table changed)

7 = Stop program

8 = Stop program and delete

9 = Make the specified file the operating system

10 = Compile and run but do not change the "run on power up" program

11 = Pause

12 = Resume

13 = Stop the running program, delete associated files, and mark as run
now and on power up

14 = Stop the running program, delete associated files, and mark as run
now but not on power up

Return Codes

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