Campbell Scientific CR9000X Measurement and Control System User Manual
Page 255

Section 7. Measurement Instructions
7-31
SDMSIO4 (Dest, Reps, Address, Mode, Command, FirstOp, SecOp,
ValuesPerRep, Mult, Offset)
This Instruction communicates with theSDM-SIO4 Serial Input Multiplexer.
See the SDM-SIO4 Manual for details.
Parameter
& Data Type
Enter
SDMSIO4 PARAMETERS
Dest
Variable or Array
The Variable in which to store the results of the instruction or, when the instruction is used
to send data, this array becomes the data to send. When Reps or multiple values per rep
are used, the results are stored in an array with the variable name.
The Dest array must be dimensioned to have elements for Reps multiplied by Values per
Rep.
Reps
Constant
The number of repetitions for the measurement or instruction.
Address
Constant
The address for the SDM-SIO4 (0-14)
Mode
The SIO4 port the instruction applies to.
Constant
Code Port
1
Send/Receive Port 1
2
Send/Receive Port 2
3
Send/Receive Port 3
4
Send/Receive Port 4
5
Send to all four ports (global)
Command,
FirstOp, SecOp
Constants1
Commands to SDM-SIO4. See SDM-SIO4 Manual
ValuesPerRep
Constant
How many values to send or receive
Mult, Offset
Constant,
Variable, Array,
or Expression
A multiplier and offset by which to scale the results. A multiplier of one and an offset of 0
are necessary to store the values as received. For example, the TCDiff instruction
measures a thermocouple and outputs temperature in degrees C. A multiplier of 1.8 and an
offset of 32 will convert the temperature to degrees F.
SDMSW8A (Dest, Reps, SDMAddress, FunctOp, SW8AStartChan, Mult,
Offset)
The SDMSW8A instruction is used to control the SDM-SW8A Eight-Channel
Switch Closure module, and store the results of its measurements to a variable
array.
This instruction must NOT be placed inside a conditional
statement or in a SubScan.
NOTE