beautypg.com

Campbell Scientific CR800 and CR850 Measurement and Control Systems User Manual

Page 469

background image

Appendix A. CRBasic Programming Instructions

469

 

SDMAO4 
Sets output voltage levels in an SDM‐AO4 analog output device. 

Syntax 

SDMAO4(Source, Reps, SDMAdress)

SDMAO4A 
Sets output voltage levels in an SDM‐AO4A analog output device. 

Syntax 

SDMAO4A(Source, Reps, SDMAdress)

SDMCAN 
Reads and controls an SDM‐CAN interface. 

Syntax 

SDMCAN(Dest, SDMAddress, TimeQuanta, TSEG1, TSEG2, ID,

DataType,

SDMCD16AC 
Controls an SDM‐CD16AC, SDM‐CD16, or SDM‐CD16D control device. 

Syntax 

SDMCD16AC(Source, Reps, SDMAddress)

SDMCD16Mask 
Controls an SDM‐CD16AC, SDM‐CD16, or SDM‐CD16D control device.  Unlike the 
SDMCD16AC, it allows the CR800 to select the ports to activate via a mask. 
Commonly used with TimedControl()

Syntax 

SDMCD16Mask(Source, Mask, SDMAddress)

SDMCVO4 
Control the SDM‐CVO4 four‐channel, current/voltage output device. 

Syntax 

SDMCVO4(CVO4Source, CVO4Reps, SDMAddress, CVO4Mode)

SDMGeneric 
Sends commands to an SDM device that is otherwise unsupported in the 
operating system. 

Syntax 

SDMGeneric(Dest, SDMAddress, CmdByte, NumvaluesOut, Source,

NumValuesIn, BytesPerValue, BigEndian, DelayByte)

SDMINT8 
Controls and reads an SDM‐INT8. 

Syntax 

SDMINT8(Dest, Address, Config8_5, Config4_1, Funct8_5,

Funct4_1, OutputOpt, CaptureTrig, Mult, Offset)

SDMIO16 
Sets up and measures an SDM‐IO16 control‐port expansion device. 

Syntax 

SDMIO16(Dest, Status, Address, Command, Mode Ports 16-13,

Mode Ports 12-9, Mode Ports 8-5, Mode Ports 4-1, Mult,
Offset)