07.01.2015 Views

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - 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 11. Programming Resource Library<br />

Mv!<br />

SDIRecorder () Instruction<br />

SDICommand Entry<br />

Actions Internal to <strong>CR200</strong>(X) and<br />

Sensor<br />

<strong>CR200</strong>(X): Issues aMv! command<br />

Sensor: Responds with atttnn<br />

<strong>CR200</strong>(X): Waits until ttt 1 seconds.<br />

Issues aDv! command(s)<br />

Sensor: Responds with data.<br />

Cv!<br />

<strong>CR200</strong>(X): Issues aCv! command<br />

Sensor: Responds with atttnn<br />

<strong>CR200</strong>(X): If ttt=0 then issues aDv!<br />

command(s)<br />

Sensor: Responds with data.<br />

<strong>CR200</strong>(X): else, if ttt>0 then moves to<br />

next CRBASIC program instruction.<br />

<strong>CR200</strong>(X): At next time SDIRecorder()<br />

is executed, if elapsed time < ttt, moves<br />

to next CRBASIC instruction,.<br />

<strong>CR200</strong>(X): else, issues aDv!<br />

command(s)<br />

Sensor: Responds with data.<br />

<strong>CR200</strong>(X): Issues aCv! command (to<br />

request data for next scan).<br />

Cv (note: no ! termination)<br />

<strong>CR200</strong>(X): Tests to see if ttt expired.<br />

If ttt not expired, loads "1e9" into first<br />

variable then moves to next CRBASIC<br />

instruction. If ttt expired, issues aDv!<br />

command(s).<br />

Sensor: Responds to aDv! command(s)<br />

with data, if any. If no data, loads NAN<br />

into variable.<br />

<strong>CR200</strong>(X): moves to next CRBASIC<br />

instruction (does not re-issue aCv!<br />

command).<br />

1 Note that ttt is local only to the SDIRecorder() instruction.<br />

11.4.3 SDI-12 Power Considerations<br />

When a command is sent by the datalogger to an SDI-12 probe, all probes on<br />

the same SDI-12 port will wake up. Only the probe addressed by the datalogger<br />

118

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

Saved successfully!

Ooh no, something went wrong!