| Contents | Index |
xPC Target Library for Parallel Port
Hardware Output | Block Input Data Type | Scaling |
|---|---|---|
TTL | Double (Format:4 1-bit Channels) | Double: >
0.5 = TTL high |
uint8 (Format:One 4-bit Port) | uint8: Bit set = TTL high |
Select a parallel port base address. This address depends on the PC 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
Enter an alternate parallel port base address, in hexadecimal. This parameter appears only if you select Other for Base address. For example,
0x300
From the list, select one of the following modes to specify how to treat data:
4 1–bit Channels
Treats data as individual bits. Configures block to accept up to four 1-bit channels.
One 4–bit Port
Treats data as a single byte. Configures block to accept one 4-bit port.
Enter a vector of numbers between 1 and 4. This parameter appears only if you select 4 1–bit Channels for Format. For example,
[1, 3]
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 the initial value for all channels. The channels are set to the initial values between the time the model is downloaded and the time it is started.
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 used for all channels. 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.
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 used for all channels. If the Final action vector is -1, the block sets the channel to this value on model termination.
Enter the base sample time or a multiple of the base sample time.

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |