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.

OpFcn OP5142EX1 DataIn Send

Block

Mask

Description

The block OpFcnOP5142EX1 DataIn Send is used to transfer raw data from an RT-LAB model to an Opal-RT OP5142 card.

One OpFcnOP5142EX1 DataIn Send block controls data transfer to one of the DataIn port of the bitstream programmed in the OP5142 card. The OP5142-EX1 bitstream must be produced with Opal-RT RT-XSG product, version 1.3 or higher.

In the OP5142-EX1 implementation of the OP5142 support, the OP5142 bitstreams have 32 DataIn input ports and 32 DataOut output ports. Each port has a maximum width of 250 32-bit data words. These data ports are used to exchange data between the RT-LAB model and the FPGA chip of the OP5142 via the PCIe bus of the target computer.

Parameters

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].
Data inport widthEnter the maximum number of data words that will be transferred to the OP5142 at each calculation step, in the range [1:250].
Data inport typeSelect the OpFcnOP5142EX1 DataIn Send data inport type : 'uint32' or 'double'. When 'double' is selected, the underlying driver performs data typecast between 'double' and 'uint32', so data values are limited to the range [0:2^32-1]. The possibility to set the inport to 'uint32' type is provided for optimum performances.

Inputs

The block has one inport. The data values routed to this inport are transferred to the OP5142 at each calculation step. No scaling or formatting of the data is performed, except for typecast from double to uint32 if the Data inport type parameter is set to double.

Outputs

The Status output returns the following values:

ValueDescription
0No error.
-1

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

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 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter