Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Block

Mask

Description

The OP5110-5120 Digital Out block is a static digital output block for the OP511x-OP512x family of boards, formerly named OPHSDIO boards.

OnOP5110 or OP5120 boards, DIO lines are grouped in ports of 8 DIO lines. For example, the OPHSDIO64 card features 7 ports of 8 lines. The OP5110-5120Digital Out block can monitor any number of the lines of one port simultaneously, each line being connected to its own digital signal.

Control of the output connector: The OP512x boards have two sets of connectors: 4 on-board 40pinconnectors, and 2 external 80-pin connectors. The selection of the connectors is done by the choice of the Connector parameter of the OP5110-5120 OpSync block. For this reason, an OP5110-5120 OpSync block must always be present in a model, even when the board is not used for hardware synchronization of the model. Please refer to the documentation of the OP5110-5120 OpSync block for more details.

Parameters

Target environmentSelect between RT-LAB and xPC Target.
Card Type

Select the board type in this list. Each entry of the list specifies a board number, a device ID, and when applicable, the former name of the board. The device ID of the board selected must match a board installed on the target computer otherwise an error is returned.

On a Red Hat system, the deviceID of a board is specified in the name of the bitstream programmed in this board.

On a xPC Target,the device ID is obtained with the command getxpcpci all.

PCI slot (-1:autosearch)

This option is only available for xPC Target environment.

If only one OP5110 board is present in the xPC target PC, enter

-1

to automatically locate the board.

If two or more boards of this type are in the target PC, 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 thePCI slot number, in the MATLAB command window, type:

getxpcpci all

Board indexEnter the board index of the card [see board index limitations in the characteristics section below]
PortThis popup allows the user to specify which I/O port of the OP5110 or OP5120board is used. A port is a group of 8 lines. The port are always named from A to M, although some OP5110 or OP5120 boards may have only a subset of these ports available for the Digital Output feature. The popup only displays the list of ports available on the selected board. Some ports support several features that cannot be used simultaneously; please refer to the documentation of your system for more details.A different OP5110-5120 Digital Out block must be used for each I/O port.
Selection of channels used in outputEnter the vector of channel numbers to be monitored by this block. The channel numbers, in the range [0-7], can be entered in any order and must appear only once in the list.
Synchronizesee definition.


Inputs

At each calculation stepof the model, the block outputs to the I/O lines the values calculated in the model.

Three sets of input values must be specified :

resetValues that will be written to the selected I/O channels when the reset button is hit.
pauseValues that will be written to the selected I/O channels when the model is in pause mode, that is at initialization or when the pause button is hit.
runValues that will be written to the selected I/O channels at each time step.



Note: to ensure that the pause and reset values be properly written out, it is recommended to set these values in the model subsystem that contains the OP5110-5120 Digital Out block, and not to provide them from the console subsystem.


Outputs

This block has no outputs.

Characteristics and Limitations

Board Index Limitations

On the OP5120 boards (PC-104 format), the board index is user-selectable in the range [0-15] via a connector on the board. However, boardsOPHSDIO64 labeled v0.01 do not implement this feature, and the board index of these boards is set to the default value 15.

On the PCI boards (OP511x family), the board index is user-selectable in the range [12-15], via the jumpers JP8 on the board:

Connector Pin Assignments

OP5110-5120 boards usually ship with custom-made cables adapted to the signal conditioning required by the system they are to be connected to. Please refer to the documentation of your system for your specific connector pin assignment. If you need to prepare your own custom cable, please refer to the connector pin assignment table.

Direct FeedthroughNo
Discrete sample timeNo
XHP supportYes
Work offlineNo
  • No labels