04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

SlowSequence<br />

Do<br />

'Note SDI12SensorSetup / SDI12SensorResponse must be renewed<br />

'after each successful SDI12Recorder() poll.<br />

SDI12SensorSetup(1,1,0,95)<br />

Delay(1,95,Sec)<br />

SDI12SensorResponse(Temp(1))<br />

Loop<br />

EndSequence<br />

SlowSequence<br />

Do<br />

SDI12SensorSetup(1,3,1,95)<br />

Delay(1,95,Sec)<br />

SDI12SensorResponse(Temp(2))<br />

Loop<br />

EndSequence<br />

SlowSequence<br />

Do<br />

SDI12SensorSetup(1,5,2,95)<br />

Delay(1,95,Sec)<br />

SDI12SensorResponse(Temp(3))<br />

Loop<br />

EndSequence<br />

SlowSequence<br />

Do<br />

SDI12SensorSetup(1,7,3,95)<br />

Delay(1,95,Sec)<br />

SDI12SensorResponse(Temp(4))<br />

Loop<br />

EndSequence<br />

EndProg<br />

SDI-12 Extended Command Support<br />

SDI12Recorder() sends any string enclosed in quotation marks in the Command<br />

parameter. If the command string is a non-standard SDI-12 command, any<br />

response is captured into the variable assigned to the Destination parameter, so<br />

long as that variable is declared As String. CRBasic example Use of an SDI-12<br />

Extended Command (p. 184) shows appropriate code for sending an extended SDI-<br />

12 command and receiving the response. The extended command feature has no<br />

built-in provision for responding with follow-up commands. However, the<br />

program can be coded to parse the response and issue subsequent SDI-12<br />

commands based on a programmer customized evaluation of the response. For<br />

more information on parsing strings, see Input Programming Basics (p. 206).<br />

183

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!