beautypg.com

B.2 edlog example – Campbell Scientific OBS-3+ and OBS300 Suspended Solids and Turbidity Monitors User Manual

Page 45

background image

Appendix B. Example Programs


For i = 1 To n

'n=10 in this case so ten measurements will be made for both the high and low
'input ranges. A multiplier of 0.001 is used because the coefficients are
'from the voltage calibration sheet
VoltSe (NTUarray(i),1,2,0.001,0)
NTUarray(i) = A(2) * NTUarray(i)^2 + B(2) * NTUarray(i) + C(2)

Next i

AvgSpa (NTU,10,NTUarray())
StdDevSpa (NTU_SD,10,NTUarray())

If NTU < 250 Then

For i = 1 To n

VoltSe (NTUarray(i),1,1,0.001,0)
NTUarray(i) = A(1) * NTUarray(i)^2 + B(1) * NTUarray(i) + C(1)

Next i

AvgSpa (NTU,10,NTUarray())
StdDevSpa (NTU_SD,10,NTUarray())

EndIf

SWBatt (0 )

CallTable NTUData
NextScan
EndProg

B.2 Edlog Example

The following example uses the voltage curve of the calibrations certificate

provided in FIGURE 7-3. Since the coefficients of the voltage curve are used,

the multiplier for

Instruction 1 – Volt (SE) needs to be 0.001.

The calibration values are different for each probe.

;{CR10X}

;OBS-3+ Turbidity Probe
;Blue

1H (SE1)

;White

1L (SE2)

;Green

AG

;Red

SW12V

;Black

G

;Red jumper C8 SW12V CTRL

;This example is for a sensor that has output of 250 NTU
;on the low range and 1000 NTU on the high range.
;The calibration is in units of VOLTS. If your calibration
;certificate is in mV then the "Mult" in the Volt SE instructions
;should be 1.
;
;***********************************************************

*Table 1 Program
01: 5

Execution Interval (seconds) ;5-second execution

NOTE

B-3