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

EndIf<br />

EndProg<br />

'10 Minute Data Interval<br />

Scan(10,Min,0,0)<br />

Counter(6) = Counter(6) + 1<br />

Battery(Batt_volt)<br />

PanelTemp(PTemp,250)<br />

TCDiff(Level,1,mV2_5,1,TypeT,PTemp,True,0,250,1.0,0)<br />

If TimeIntoInterval(0,1,Min) Then<br />

TimeIntoTest = TimeIntoTest + 1<br />

EndIf<br />

'Call Output Tables<br />

CallTable LogTable<br />

NextScan<br />

7.8.17.5 Scaling Array<br />

CRBasic example Scaling Array (p. 250) demonstrates programming to create and<br />

use a scaling array. Several multipliers and offsets are entered at the beginning of<br />

the program and then utilized by several measurement instructions throughout the<br />

program.<br />

CRBasic Example 56.<br />

'Declare viewable variables<br />

Public PTemp_C, Temp_C(10)<br />

Public Count<br />

Scaling Array<br />

'Declare scaling arrays as non-viewable variables<br />

Dim Mult(10), Offset(10)<br />

'Declare Output Table<br />

DataTable(min_5,True,-1)<br />

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

Average(1,PTemp_C,FP2,0)<br />

Maximum(1,PTemp_C,FP2,0,0)<br />

Minimum(1,PTemp_C,FP2,0,0)<br />

Average(10,Temp_C(),FP2,0)<br />

Minimum(10,Temp_C(1),FP2,0,0)<br />

Maximum(10,Temp_C(1),FP2,0,0)<br />

EndTable<br />

250

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

Saved successfully!

Ooh no, something went wrong!