Documentation

Parallel Port Digital Output

Parallel Port Digital Output block

Library

Simulink® Real-Time™ Library for Parallel Port

Scaling Output to Input

I/O Module Output

Block Input Data Type

Scaling

TTL

Double (Format:8 1-bit Channels)

Double:
< 0.5 = TTL low

> 0.5 = TTL high

uint8 (Format:One 8-bit Port)

uint8:
Bit clear = TTL low

Bit set = TTL high

Block Parameters

Base address

Select a parallel port base address. This address depends on the target computer BIOS. From the list, select one of the following. If your base address is not one of the supplied standard base addresses, select Other and enter your base address in Alternate base address.

  • 0x3bc

  • 0x378

  • ox278

  • Other

Alternate base address

Enter an alternate parallel port base address, in hexadecimal. This parameter appears only if you select Other for Base address. For example,

0x300
Format

From the list, select one of the following modes to specify how to treat data:

  • 8 1–bit Channels

    Treats data as individual bits. Configures block to accept up to eight 1-bit channels.

  • One 8–bit Port

    Treats data as a single byte. Configures block to accept one 8-bit port.

Channels

Enter a vector of numbers between 1 and 8. This parameter appears only if you select 5 1–bit Channels for Format. For example,

[1, 3]
Initial value vector

The initial value vector contains the initial voltage values for the output channels. Enter a scalar or a vector that is the same length as the channel vector. If you specify a scalar value, that value is replicated as the initial value over the channel vector. The channels are set to the initial values between the time the model is downloaded and the time it is started.

Final action vector

The final action vector controls the behavior of the channel at model termination. Enter a scalar or a vector that is the same length as the channel vector. If you specify a scalar value, that setting is replicated over the channel vector. If you specify a value of 1, the corresponding channel is reset to the value specified in the initial value vector. If you specify a value of -1, the block sets the channel to the value specified in the Final value vector value for that channel. If you specify a value of 0, the channel remains at the last value attained while the model was running.

Final value vector

The final value vector contains the final value for each output channel. Enter a scalar or a vector that is the same length as the channel vector. If you specify a scalar value, that setting is replicated over the channel vector. If the Final action vector is -1, the block sets the channel to this value on model termination.

Sample time

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Was this topic helpful?