User`s guide
I/O Driver Blocks
4-13
2 In the Sample time box, enter the same value you entered in the Fixed step
size
box from the Configuration Parameters dialog box. For example,
enter
0.001
3 In the Output channels box, enter a channel vector that selects the analog
input channels you are using on this board. The vector can be any valid
MATLAB vector form. For example, to select both analog output channels on
the AD512 board, enter
[1,2] or [1:2]
4 From the Output range list, choose the input range for all of the analog
input channels you entered in the Input channels box. For example, with the
AD512 board, choose
-5 to 5 V.
If you want the input range to be different for different analog channels, you
need to add an I/O block for each different input range.
5 From the Block input signal list, choose from the following options:
-
Volts — Expects a value equal to the analog output voltage.
-
Normalized unipolar — Expects a value between 0 and +1 that is
converted to the full range of the output voltage regardless of the output
voltage range. For example, an analog output range of 0 to +5 volts and -5
to +5 volts would both be converted from values between 0 and +1.
-
Normalized bipolar — Expects a value between -1 and +1 that is
converted to the full range of the output voltage regardless of the output
voltage range.
-
Raw — Expects a value of 0 to 2
n
-1. For example, a 12-bit A/D converter
would expect a value between 0 and 2
12
-1 (0 to 4095). The advantage of
this method is the expected value is always an integer with no roundoff
errors.
6 Enter the initial value for each analog output channel you entered in the
Output channels box. For example, if you entered [1,2] in the Output
channels
box, and you want an initial value of 0 volts, enter [0,0].