| Contents | Index |
xPC Target Library for General Standards
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.
Hardware Input | Block Output Data Type | Scaling |
|---|---|---|
TTL | Double | TTL low = 0.0 |
The values passed to the enable input port and enable output port of this block are Boolean values.
Enter numbers between 1 and 8 to select the digital input lines to be read. This driver allows the selection of individual digital input lines in any order. The number of elements defines the number of digital lines used.
For example, to use all of the digital inputs, enter
[1,2,3,4,5,6,7,8]
Number the lines beginning with 1 even though the board manufacturer starts numbering the lines with 0. Note that the 8 digital lines are either all input or all output.
Select this check box to display an input enable port that controls writing data from the digital input ports on the hardware. If the enable input signal is true, then the digital input values are read and output to the block output port. If the enable input signal is false, then zero data is output to the block output port. If this check box is not selected, then the enable input signal is assumed to be true.
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.
Enter the base sample time or a multiple of the base sample time.
If only one board of this type is in the target computer, enter
-1
to automatically 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
getxpcpci

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 |