07.01.2015 Views

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - Campbell Scientific

CR200/CR200X Series Dataloggers - 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 10. CRBASIC Programming Instructions<br />

PulseCount<br />

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

Syntax<br />

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

Offset)<br />

10.5.4 Digital I/O<br />

AnalogPortGet<br />

Configures an analog port as a digital input and stores the status of the input in a<br />

variable.<br />

Syntax<br />

AnalogPortGet (Dest, Port)<br />

AnalogPortSet<br />

Configures an analog port as a digital output and sets the port either high or low.<br />

Syntax<br />

AnalogPortSet (Port, State)<br />

PeriodAvg<br />

Measures the period of a signal on any single-ended voltage input channel.<br />

Syntax<br />

PeriodAvg (Dest, SEChan, PAOption, Cycles,<br />

Timeout, Port, Mult, Offset)<br />

PortGet<br />

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

Syntax<br />

PortGet (Dest, Port)<br />

PortSet<br />

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

Syntax<br />

PortSet (Port, State)<br />

10.5.5 SDI-12<br />

Read More! See SDI-12 Sensor Support (p. 112).<br />

SDI12Recorder<br />

The SDI12Recorder instruction is used to retrieve the results from an SDI-12<br />

sensor.<br />

Syntax<br />

SDI12Recorder (Dest, Outstring, Multiplier,<br />

Offset)<br />

SDI12SensorSetup<br />

Sets up the datalogger to act as an SDI12 sensor. Used together with<br />

SDI12SensorResponse.<br />

99

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

Saved successfully!

Ooh no, something went wrong!