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 />

Figure 44: "Include File" settings via PakBusGraph<br />

CRBasic Example 1.<br />

Using an "Include File" to Control SW‐12<br />

'Assumes that the Include file in CRBasic example "Include File" to Control SW-12 (p. 105)<br />

'is loaded onto the <strong>CR1000</strong> CPU: Drive.<br />

'The Include file will control power to the cellular phone modem.<br />

Public PTemp, batt_volt<br />

DataTable(Test,1,-1)<br />

DataInterval(0,15,Sec,10)<br />

Minimum(1,batt_volt,FP2,0,False)<br />

Sample(1,PTemp,FP2)<br />

EndTable<br />

BeginProg<br />

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

PanelTemp(PTemp,250)<br />

Battery(Batt_volt)<br />

CallTable Test<br />

NextScan<br />

'

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

Saved successfully!

Ooh no, something went wrong!