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

Figure 81: PT100 in four-wire full-bridge<br />

CRBasic Example 61.<br />

PT100 in Four‐Wire Full‐Bridge<br />

'See FIGURE. PT100 in Four-Wire Full-Bridge (p. 263) for wiring diagram.<br />

Public BrFullOut<br />

Public Rs_Ro<br />

Public Deg_C<br />

BeginProg<br />

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

'BrFull(Dst,Reps,Range,DfChan,Vx1,MPS,Ex,RevEx,RevDf,Settle,Integ,Mult,Offset)<br />

BrFull(BrFullOut,1,mV25,1,Vx1,1,2500,True,True,0,250,.001,.02344)<br />

'BrTrans = Rf*(X/(1-X))<br />

Rs_Ro = 50 * (BrFullOut/(1 - BrFullOut))<br />

'PRTCalc(Destination,Reps,Source,PRTType,Mult,Offset)<br />

PRTCalc(Deg_C,1,Rs_Ro,2,1.0,0)<br />

NextScan<br />

EndProg<br />

7.8.19 Running Average<br />

The AvgRun() instruction calculates a running average of a measurement or<br />

calculated value. A running average is the average of the last N values where N is<br />

the number of values, as expressed in figure Running-Average Equation (p. 263),<br />

Figure 82: Running-average equation<br />

263

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

Saved successfully!

Ooh no, something went wrong!