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.

OP5142EX1 Digital Out




The OP5142EX1 Digital Out block is used to transfer 0/1 values to be applied to the digital output channels of an OP525x carrier connected to an OP5142 board.

The data values are transferred to the OP5142 bitstream from the RT-LAB model through one DataIn port of the bitstream, via the PCIe bus of the target computer.

Each OP5142 bitstream using Digital Output channels comes with a configuration file which lists the Data port number and the corresponding OP525x location in the system. The configuration file name is the same as the bitstream file name entered in the OpCtrl OP5142EX1 block, with the extension .conf instead of .bin.

This configuration file uses three parameters to describe the selection of the OP525x channels:

  • the Slot number (in the range 1 to 4) is the slot of the backplane connected to the OP5142 in which the OP525x is installed,
  • the Section A or B is a subset of 32 lines of the OP525x carrier. For example, with the 32 In/32Out OP5251 carriers, section A refers to the 32 input lines and section B to the 32 output lines,
  • the Sub-Section,1 to 4, is a subset of 8 data values connected to the DataIn port: subset 1 returns values for the 8 first channels of one section of the OP5251, subset 2 returns values for the 8 next channels, etc.

The user must refer to the configuration file (opened with any text editor) for selecting the DataIn port number for the desired Digital Output channels. The OP5142EX1 Digital Out block then parses the configuration file and displays the Slot, Section and Sub-section values corresponding to the DataIn port number in the 'Slot info' parameter.

The maximum number of Digital Output channels controlled by one OP5142EX1 Digital Out is limited by the size of the subset of channels in one sub-section. This number can vary between 1 and 32 and is usually set to 8.


Controller NameBind this block to an OpCtrl OP5142EX1 block by entering the same 'Controller Name' as specified in the OpCtrl OP5142EX1 block The OpCtrl OP5142EX1 block controls initialization of the settings of one specific OP5142 card in the system.
DataIn port numberEnter the number of the DataIn port to be controlled by this block, in the range [1:32].
Slot infoThis non-editable parameter displays the physical location of the digital output channels related to the selected DataIn port, as obtained from the parsing of the configuration file.
Maximum number of DOut channels controlled by this blockThis non-editable parameter displays the number of channels in one sub-section listed in the configuration file.
Number of DOut channelsEnter the number of channels for which data values will be transmitted at each calculation step. This number must be less than or equal to the value of the 'Maximum number of DOut channels' parameter. The data transfer mechanism between RT-LAB and the OP5142 does not allow the selection of individual channels in the sub-section of channels. The data supplied by the block will thus apply to the N first channels of the sub-section, where N is the value of the 'Number of DOut channels' parameter.


Vals: This input supplies the 0/1 values for the subset of channels selected.


Status: This output returns the following values:

0No error.

Block could not be matched with an OpCtrl OP5142EX1 block (check the 'controller Name' value), or OP5142 card initialization problem.

-2Internal memory initialization problem.

Characteristics and Limitations

Connector Pin Assignments

The user should refer to the documentation of the OP5251 carrier for connector pin assignments.

Direct FeedthroughNo
Discrete sample timeInherited
XHP supportYes
Work offlineNo

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