Real-Time Windows Target | ![]() ![]() |
Digital Output Block
Real-Time Windows Target I/O blocks allow you to select and connect specific digital lines or digital channels to your Simulink model.
After you have added and 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:
0.001
[1,2,3,4,5,6,7,8] or [1:8]
If you want to use the first four digital input 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 Channels mode list, choose Byte.
[1,2,3,4]
in the Output channels box, and you want initial values of 0 and 1, enter [0,0,1,1]
If from the Channel mode list, you choose Byte, then enter a value between
0 and 255 for each digital output channel. For example, for one byte
(8 digital lines) with an initial value of 25, enter [25]
. For two bytes
(16 digital lines) with initial values of 25 and 50, enter [25 50]
.
[1,2,3,4]
in the Output channels box, and you want final values of 0, enter[0,0,0,0]
If from the Channel mode list, you choose Byte, then enter a value between 0 and 255 for each digital output channel.
If you chose Bit, your dialog box will look similar to the figure shown below.
![]() | Digital Input Block | Output Signals from an I/O Block | ![]() |