Campbell Scientific CR1000 Measurement and Control System User Manual

Page 183

Advertising
background image

Section 7. Installation

183

 

SlowSequence

Do

'Note SDI12SensorSetup / SDI12SensorResponse must be renewed

'after each successful SDI12Recorder() poll.

SDI12SensorSetup

(1,1,0,95)

Delay

(1,95,Sec)

SDI12SensorResponse

(Temp(1))

Loop

EndSequence

SlowSequence

Do

SDI12SensorSetup

(1,3,1,95)

Delay

(1,95,Sec)

SDI12SensorResponse

(Temp(2))

Loop

EndSequence

SlowSequence

Do

SDI12SensorSetup

(1,5,2,95)

Delay

(1,95,Sec)

SDI12SensorResponse

(Temp(3))

Loop

EndSequence

SlowSequence

Do

SDI12SensorSetup

(1,7,3,95)

Delay

(1,95,Sec)

SDI12SensorResponse

(Temp(4))

Loop

EndSequence

EndProg

 

SDI-12 Extended Command Support

SDI12Recorder() sends any string enclosed in quotation marks in the Command
parameter. If the command string is a non-standard SDI-12 command, any
response is captured into the variable assigned to the

Destination

parameter, so

long as that variable is declared As String. CRBasic example Use of an SDI-12
Extended Command

(p. 184)

shows appropriate code for sending an extended SDI-

12 command and receiving the response. The extended command feature has no
built-in provision for responding with follow-up commands. However, the
program can be coded to parse the response and issue subsequent SDI-12
commands based on a programmer customized evaluation of the response. For
more information on parsing strings, see Input Programming Basics

(p. 206).

Advertising