beautypg.com

A.5.7 digital i/o, A.5.7.1 control – Campbell Scientific CR1000 Measurement and Control System User Manual

Page 486

background image

Appendix A. CRBasic Programming Instructions

486 

 

 

PulseCount 
Measures number or frequency of voltages pulses on a pulse channel. 

Syntax 

PulseCount(Dest, Reps, PChan, PConfig, POption, Mult, Offset)

VibratingWire 
The VibratingWire instruction is used to measure a vibrating wire sensor with a 
swept frequency (from low to high). 

Syntax 

VibratingWire(Dest, Reps, Range, SEChan, Vx/ExChan,

StartFreq, EndFreq, TSweep, Steps, DelMeas, NumCycles,
DelReps, Multiplier, Offset)

A.5.7 Digital I/O

CheckPort 
Returns the status of a control port. 

Syntax 

X = CheckPort(Port)

PortGet 
Reads the status of a control port. 

Syntax 

PortGet(Dest, Port)

PortsConfig 
Configures control ports as input or output. 

Syntax 

PortsConfig(Mask, Function)

ReadIO 
Reads the status of selected control I/O ports. 

Syntax 

ReadIO(Dest, Mask)

A.5.7.1 Control

PortSet 
Sets the specified port high or low. 

Syntax 

PortSet(Port, State)

PulsePort 
Toggles the state of a control port, delays the specified amount of time, toggles 
the port, and delays a second time. 

Syntax 

PulsePort(Port, Delay)

WriteIO 
WriteIO is used to set the status of selected control I/O channels (ports) on the 
CR1000. 

Syntax 

WriteIO(Mask, Source)