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

Instructions or commands that are handled by each sequencer are listed in table<br />

Task Processes (p. 133).<br />

The measurement task sequencer is a rigidly timed sequence that measures<br />

sensors and outputs control signals for other devices. The digital task sequencer<br />

manages measurement and control of SDM devices. The processing task<br />

sequencer converts analog and digital measurements to numbers represented by<br />

engineering units, performs calculations, stores data, makes decisions to actuate<br />

controls, and performs serial I/O communication.<br />

The <strong>CR1000</strong> executes these tasks in either pipeline or sequential mode. When a<br />

program is compiled, the <strong>CR1000</strong> evaluates the program and determines which<br />

mode to use. Mode information is included in a message returned by the<br />

datalogger, which is displayed by the support software. The CRBasic Editor precompiler<br />

returns a similar message.<br />

Note A program can be forced to run in sequential or pipeline modes by placing<br />

the SequentialMode or PipelineMode instruction in the declarations section of<br />

the program.<br />

Some tasks in a program may have higher priorities than other tasks.<br />

Measurement tasks generally take precedence over all others. Priority of tasks is<br />

different for pipeline mode and sequential mode.<br />

Table 15. Task Processes<br />

Measurement Task Digital Task Processing Task<br />

• Analog<br />

Measurements<br />

• Excitation<br />

• Read Pulse<br />

Counters<br />

• Read Control<br />

Ports (GetPort())<br />

• Set Control Ports<br />

(SetPort())<br />

• VibratingWire()<br />

• PeriodAvg()<br />

• CS616()<br />

• Calibrate()<br />

• All SDM<br />

instructions, except<br />

SDMSI04() and<br />

SDMI016()<br />

• Processing<br />

• Output<br />

• Serial I/O<br />

• SDMSIO4()<br />

• SDMIO16()<br />

• ReadIO()<br />

• WriteIO()<br />

• Expression evaluation and<br />

variable setting in<br />

measurement and SDM<br />

instructions<br />

7.7.3.6.1 Pipeline Mode<br />

Pipeline mode handles measurement, most SDM, and processing tasks separately,<br />

and possibly simultaneously. Measurements are scheduled to execute at exact<br />

times and with the highest priority, resulting in more-precise timing of<br />

measurement, and usually more-efficient processing and power consumption.<br />

Pipeline scheduling requires that the program be written such that measurements<br />

are executed every scan. Because multiple tasks are taking place at the same time,<br />

133

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

Saved successfully!

Ooh no, something went wrong!