A.5.6 pulse and frequency, A.5.7 digital i/o – Campbell Scientific CR3000 Micrologger User Manual

Page 488

Advertising
background image

Appendix A. CRBasic Programming Instructions

488 

 

 

SW12 
Sets a switched 12‐Vdc terminal high or low. 

Syntax 

SW12(State)

A.5.6 Pulse and Frequency

Read More! See Pulse

(p. 318).

 

Note Pull-up resistors are required when using digital I/O (control) ports for
pulse input (see Pulse Input on Digital I/O Channels C1 - C8

(p. 321)

).

PeriodAvg 
Measures the period of a signal on any single‐ended voltage input channel. 

Syntax 

PeriodAvg(Dest, Reps, Range, SEChan, Threshold, PAOption,

Cycles, Timeout, Mult, Offset)

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)

Advertising