04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Section 7. Installation<br />

Else 'C!/C command sequence complete<br />

Move(Temp_Meas(X),1,Temp_Tmp(X),1) 'Copy measurements to SDI_Val(10)<br />

cmd(X) = "C!"<br />

'Start next measurement with "C!"<br />

IndDone(X) = -1<br />

EndIf<br />

Next X<br />

'Summarize Measurement Event Success<br />

For X = 1 To 4<br />

GroupDone = GroupDone + IndDone(X)<br />

Next X<br />

'Stop current measurement event, reset controls<br />

If GroupDone = -4 Then<br />

RunSDI12 = False<br />

GroupDone = 0<br />

For X = 1 To 4<br />

IndDone(X) = 0<br />

Retry(X) = 0<br />

Next X<br />

Else<br />

GroupDone = 0<br />

EndIf<br />

EndIf<br />

'End of measurement sequence<br />

NextScan<br />

EndProg<br />

CRBasic Example 34.<br />

Using SDI12Sensor() Command<br />

'Program to simulate 4 SDI-12 sensors. Can be used to produce measurements to test<br />

'CRBasic example Using Alternate Concurrent Command (aC) (p. 181).<br />

Public Temp(4)<br />

DataTable(Temp,True,0)<br />

DataInterval(0,5,Min,10)<br />

Sample(4,Temp(),FP2)<br />

EndTable<br />

BeginProg<br />

Scan(5,Sec,0,0)<br />

PanelTemp(Temp(1),250)<br />

Temp(2) = Temp(1) + 5<br />

Temp(3) = Temp(1) + 10<br />

Temp(4) = Temp(1) + 15<br />

CallTable Temp<br />

NextScan<br />

182

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

Saved successfully!

Ooh no, something went wrong!