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 block OpFcnOP7160EX1 LoadIn is used to transfer raw data from an RT-LAB model to an Opal-RT OP7160 card.

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

In the OP7160-EX1 implementation of the OP7160 support, the OP7160 bitstreams have 32 LoadIn input ports and 32 LoadOut output ports. Each port has a maximum width of 250 32-bit data words. The LoadIn ports can be used to set a particular configuration on the FPGA chip; these ports allow to set the parameters of different peripheral from the RT-LAB model.

Parameters

Controller NameBind this block to an OpCtrl OP7160EX1 block by entering the same 'Controller Name' as specified in the OpCtrl OP7160EX1 block The OpCtrl OP7160EX1 block controls initialization of the settings of one specific OP7160 card in the system.
LoadIn port numberEnter the index of the LoadIn port to be controlled by this block, in the range [1:32].
LoadIn port widthEnter the maximum number of data words that will be transfered to the OP7160 at each calculation step, in the range [1:250].
Data typeSelect the OpFcnOP7160EX1 LoadIn 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 two inports.

EnableThis input is used to set latency time in data loading. When this input is set to 1, the 'Data' inport is sent to the OP7160 board. For other values, the LoadIn will not send data.
DataThis input represents the data that will be sent to the OP7160 board if the 'Enable' port is set to '1'. 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'.




Note: It is not recommendable to use the LoadIn block to send data at each step. This practice could decrease simulation performances. The LoadIn block is more appropriate for a single sending.



Outputs

The Status output returns the following values:

ValueDescription
0No error.
-1

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

-2Internal memory initialization problem.

Characteristics and Limitations

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