Real-Time Windows Target | ![]() ![]() |
Digital Output Block
The 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:
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
.
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
[1,2,3,4]
in the Output channels box, and you want initial values of 0 and 1, enter
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
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 | Counter Input Block | ![]() |