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.

OP5110-5120 Digital In

Block

Mask

Description

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

On OP5110 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-5120 Digital In 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.
CardType

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 an 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]
Port

This 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 Input 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 In block must be used for each I/O port.

Selection of channels used in input: Enter 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.
Sample Time (s)see definition.


Inputs

This block has no inputs.

Outputs

At each calculation step of the model, the block returns the current values (0 or 1) on the selected I/O lines.

Only the values of the channels specified in the channel list parameter are returned and the outputs are in the order of the channel list parameter. The width of the outport of the block must be equal to the number of entries in the channel list parameter. Use a demux to connect individual outputs to the rest of the model.

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

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323