04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - 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.

Appendix A. CRBasic Programming Instructions<br />

MuxSelect<br />

Selects the specified channel on a multiplexer.<br />

Syntax<br />

MuxSelect(ClkPort, ResPort, ClkPulseWidth, MuxChan, Mode)<br />

SDMAO4<br />

Sets output voltage levels in an SDM‐AO4 analog output device.<br />

Syntax<br />

SDMAO4(Source, Reps, SDMAdress)<br />

SDMAO4A<br />

Sets output voltage levels in an SDM‐AO4A analog output device.<br />

Syntax<br />

SDMAO4A(Source, Reps, SDMAdress)<br />

SDMCAN<br />

Reads and controls an SDM‐CAN interface.<br />

Syntax<br />

SDMCAN(Dest, SDMAddress, TimeQuanta, TSEG1, TSEG2, ID,<br />

DataType,<br />

SDMCD16AC<br />

Controls an SDM‐CD16AC, SDM‐CD16, or SDM‐CD16D control device.<br />

Syntax<br />

SDMCD16AC(Source, Reps, SDMAddress)<br />

SDMCD16Mask<br />

Controls an SDM‐CD16AC, SDM‐CD16, or SDM‐CD16D control device. Unlike the<br />

SDMCD16AC, it allows the <strong>CR1000</strong> to select the ports to activate via a mask.<br />

Commonly used with TimedControl().<br />

Syntax<br />

SDMCD16Mask(Source, Mask, SDMAddress)<br />

SDMCVO4<br />

Control the SDM‐CVO4 four‐channel, current/voltage output device.<br />

Syntax<br />

SDMCVO4(CVO4Source, CVO4Reps, SDMAddress, CVO4Mode)<br />

SDMGeneric<br />

Sends commands to an SDM device that is otherwise unsupported in the<br />

operating system.<br />

Syntax<br />

SDMGeneric(Dest, SDMAddress, CmdByte, NumvaluesOut, Source,<br />

NumValuesIn, BytesPerValue, BigEndian, DelayByte)<br />

SDMINT8<br />

Controls and reads an SDM‐INT8.<br />

Syntax<br />

SDMINT8(Dest, Address, Config8_5, Config4_1, Funct8_5,<br />

Funct4_1, OutputOpt, CaptureTrig, Mult, Offset)<br />

491

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

Saved successfully!

Ooh no, something went wrong!