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 8. Operation<br />

basic code requirements. The DataTime() instruction is a more recent<br />

introduction that facilitates time stamping with system time. See Data Table<br />

Declarations (p. 475) and CRBasic Editor Help for more information.<br />

CRBasic Example 63.<br />

'Declare Variables<br />

Public value<br />

Time Stamping with System Time<br />

'Declare data table<br />

DataTable(Test,True,1000)<br />

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

EndTable<br />

SequentialMode<br />

BeginProg<br />

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

'Delay -- in an operational program, delay may be caused by other code<br />

Delay(1,500,mSec)<br />

'Measure Value -- can be any analog measurement<br />

PanelTemp(Value,0)<br />

'Immediately call SlowSequence to execute CallTable()<br />

TriggerSequence(1,0)<br />

NextScan<br />

'Allow data to be stored 510 ms into the Scan with a s.51 time stamp<br />

SlowSequence<br />

Do<br />

WaitTriggerSequence<br />

CallTable(Test)<br />

Loop<br />

EndProg<br />

Other time-processing CRBasic instructions are governed by these same rules.<br />

Consult CRBasic Editor Help for more information on specific instructions.<br />

8.1.2 Voltage<br />

The <strong>CR1000</strong> incorporates a programmable gain input instrumentation amplifier<br />

(PGIA), as illustrated in figure PGI Amplifier (p. 275). The voltage gain of the<br />

instrumentation amplifier is determined by the user-selected range code associated<br />

with voltage-measurement instructions. The PGIA can be configured to measure<br />

either single-ended (SE) or differential (DIFF) voltages. For SE measurements,<br />

the voltage to be measured is connected to the H input while the L input is<br />

internally connected to signal ground ( ). CRBasic instructions BrHalf(),<br />

BrHalf3W(), TCSE(), Therm107(), Therm108(), Therm109(), and VoltSE()<br />

perform SE voltage measurements. For DIFF measurements, the voltage to be<br />

measured is connected between the H and L inputs on the PGIA. CRBasic<br />

274

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

Saved successfully!

Ooh no, something went wrong!