Documentation

General Standards PMC-ADADIO Digital Output

PMC-ADADIO Digital Output block

Library

Simulink® Real-Time™ Library for General Standards

Note

Note that you cannot use the PMC-ADADIO Digital Input and Digital Output driver blocks simultaneously on the same board. Doing so causes an error at model update or build.

Scaling Input to Output

I/O Module Output

Block Input Data Type

Scaling

TTL

Double

< 0.5 = TTL low
≥ 0.5 = TTL high

The values passed to the enable input port and enable output port of this block are Boolean values.

Block Parameters

Channel vector

Enter numbers between 1 and 8 to select the digital output lines to be written. This driver allows the selection of individual digital output lines in arbitrary order. The number of elements defines the number of digital lines used.

For example, to use all of the digital outputs, enter

[1,2,3,4,5,6,7,8]

Number the lines beginning with 1 even if this board manufacturer starts numbering the lines with 0. Note that the 8 digital lines are either all input or all output.

Reset vector

The reset 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 0, the channel remains at the last value attained while the model was running. For example, if Channel vector is [ 2 3 ] and the Reset vector is [1], the action taken will be the same as if Reset vector was set to [1 1]. Both channels will be reset to their initial values when model execution is stopped.

Initial value vector

The initial value vector contains the initial logical values for the output channels. Enter a scalar or a vector that is the same length as the channel vector. These values can only contain 1's and 0's. If you specify a scalar value, that value is replicated as 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. When model execution is stopped, the corresponding position in Reset vector is checked. Depending on that value, the channel is either reset to the initial value or remains at the last value attained while the model was running. For example, assume that Channel vector is [2 5 8], Reset vector is [1 0 1], and Initial value vector is [1 1 0]. On initial download, channel 2 is set to high, channel 5 to high, and channel 8 to low. When the model is stopped, channel 2 resets to high, channel 5 remains at the last value attained, and channel 8 resets to low.

Enable input port

Select this check box to display an input enable port that controls writing data to the digital output ports on the I/O module. If the enable input signal is true, then the block input data is written to the digital output ports. If the enable input signal is false, then data is not written to the digital output ports and the output remains at the previous value. If this check box is not selected, then the enable input signal is assumed to be true.

Enable output port

Select this check box to pass the Boolean value from the input enable port to the output enable port. You can connect this port to the input enable port on another block to control other blocks in the model and specify execution ordering.

Sample time

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

PCI slot (-1:autosearch)

If only one board of this type is in the target computer, enter -1 to locate the board.

If two or more boards of this type are in the target computer, enter the bus number and the PCI slot number of the board associated with this driver block. Use the format [BusNumber,SlotNumber].

To determine the bus number and the PCI slot number, type:

tg = slrt;
getPCIInfo(tg, 'installed')

Was this topic helpful?