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.

Appendix A. CRBasic Programming Instructions<br />

PulseCount<br />

Measures number or frequency of voltages pulses on a pulse channel.<br />

Syntax<br />

PulseCount(Dest, Reps, PChan, PConfig, POption, Mult, Offset)<br />

VibratingWire<br />

The VibratingWire instruction is used to measure a vibrating wire sensor with a<br />

swept frequency (from low to high).<br />

Syntax<br />

VibratingWire(Dest, Reps, Range, SEChan, Vx/ExChan,<br />

StartFreq, EndFreq, TSweep, Steps, DelMeas, NumCycles,<br />

DelReps, Multiplier, Offset)<br />

A.5.7 Digital I/O<br />

CheckPort<br />

Returns the status of a control port.<br />

Syntax<br />

X = CheckPort(Port)<br />

PortGet<br />

Reads the status of a control port.<br />

Syntax<br />

PortGet(Dest, Port)<br />

PortsConfig<br />

Configures control ports as input or output.<br />

Syntax<br />

PortsConfig(Mask, Function)<br />

ReadIO<br />

Reads the status of selected control I/O ports.<br />

Syntax<br />

ReadIO(Dest, Mask)<br />

A.5.7.1 Control<br />

PortSet<br />

Sets the specified port high or low.<br />

Syntax<br />

PortSet(Port, State)<br />

PulsePort<br />

Toggles the state of a control port, delays the specified amount of time, toggles<br />

the port, and delays a second time.<br />

Syntax<br />

PulsePort(Port, Delay)<br />

WriteIO<br />

WriteIO is used to set the status of selected control I/O channels (ports) on the<br />

<strong>CR1000</strong>.<br />

Syntax<br />

WriteIO(Mask, Source)<br />

486

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

Saved successfully!

Ooh no, something went wrong!