beautypg.com

6 programming, 1 using scwin, 2 crbasic programming – Campbell Scientific OBS500 Smart Turbidity Meter with ClearSensor Technology User Manual

Page 39: 1 sdi-12, 2 rs-232, 3 analog, 3 edlog programming, Programming, Using scwin, Crbasic programming

background image

OBS500 Smart Turbidity Meter with ClearSensor™ Technology

10. Perform 3

rd

order polynomial regressions on the data to get the coefficients

for converting OBS output to SSC.

7.6 Programming

7.6.1 Using SCWIN

SCWIN is the easiest and, typically, the preferred method for programming the

datalogger. SCWIN generates a wiring diagram that shows how to connect the

OBS500 to your Campbell Scientific datalogger.

The sections that immediately follow are for CRBasic and Edlog.

SCWIN users can jump ahead to Section 9, Maintenance.

7.6.2 CRBasic Programming

Dataloggers that use CRBasic include our CR200X-series, CR800, CR850,

CR1000, CR3000, and CR5000 dataloggers.

7.6.2.1 SDI-12

The

SDI12Recorder instruction is used to read the OBS500 in SDI-12 mode.

A multiplier of 1.0 and an offset of 0.0 yield water level in psig and

temperature in degrees C.

The

SDI12Recorder instruction has the following form:

SDI12Recorder(Destination, Output String, Multiplier, Offset)

Refer to Appendix B.1, CR1000 SDI-12 Program, for an example of using this

CRBasic instruction.

7.6.2.2 RS-232

The

SerialOut() instruction sends strings over the Tx COM port and the

SerialIn() instruction receives strings from the Rx COM port.

Refer to Appendix B.2, CR1000 RS-232 Program, for an example of using

these CRBasic instructions.

7.6.2.3 Analog

The

PortSet instruction is used to open the shutter. Either the VoltDiff

(recommended) or

VoltSe instruction is used to measure the analog voltage

output.

Refer to Appendix B.2, CR1000 RS-232 Program, for an example of using

these CRBasic instructions.

7.6.3 Edlog Programming

Our CR500, CR510, CR10(X), and CR23X dataloggers are programmed with

Edlog.

These dataloggers use Instruction 105 (SDI12Recorder) to read the OBS500.

Your datalogger manual has a detailed explanation of Instruction 105.

NOTE

29