User`s guide

I/O Driver Blocks
4-17
After you have added a Digital Output block to your Simulink model, you can
enter the parameters for this I/O driver. This procedure uses Humusoft’s
AD512 I/O board as an example:
1 Double-click the Digital Output block.
The
Block Parameters: Digital Output dialog box opens.
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 digital
output channels you are using on this board. The vector can be any valid
MATLAB vector form. For example, to select all eight digital output
channels on the AD512 board, enter
[1,2,3,4,5,6,7,8] or [1:8]
If you want to use the first four digital output lines, enter
[1,2,3,4]
If you have one 8-bit digital channel, enter [1]. If you have two 8-bit digital
channels, enter
[1 9], and from the Channel mode list, choose Byte.
4 From the Channel mode list, choose from one of the following:
-
Bit — Expects a value of 0 or 1.
-
Byte — Expects a value of 0 to 255 that is converted to one digital channel
of eight digital lines.