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 XSG Recv

Block

Mask

Description

The functionality block OpFcnXSGRecv is used to return data read from the DataOut ports of a bitstream generated with Xilinx SystemGenerator (XSG). This functionality block must be used in the same model as an OpCtrlReconfigurableIO block, and the option 'UseExternal Send/Recv blocks' must be checked in the OpCtrlReconfigurableIO block.

Presently, only the OP5130 boards can be programmed with XSG bitstreams, so the OpCtrlReconfigurable IO block must have selected this board type. The communication between the OP5130 board and the target computer is performed via the SignalWire communication link. At each calculation step, reception of the data from the outports of the XSGbitstream is performed before all MdlOutputs() functions are executed, so these data are available for the OpFcnXSGRecv blocks even if these blocks are executed after the OpCtrlReconfigurableIO block.

Parameters

ControllerNameEach functionality block such as the OpFcnXSGRecv block must refer to an OpCtrlReconfigurableIO block that will manage the data transfer with the bitstream generated with XSG. The binding between OpFcn and OpCtrl blocks is performed via the use of the Controller name that each OpCtrl block uniquely defines. This binding is checked during the initialization phase of the model. If no OpCtrl block is found that defines the same Controller Name as this OpFcnXSGRecv block, the OpFcnXSGRecv block is simply disabled and returns 0s.
Selection of ChannelsThe block will output to the model the data values for the DataOut port numbers (or channels) listed here. The user must refer to the XSG model in order to select the right channel numbers. It is presently recommended to use only one OpFcnXSGRecv block for each channel.
Blocking channelSelecting this option will signal to the driver that the model should block until expected data is received at this DataOut port. If a list of channels is selected, this option presently applies to the first channel number of the list only.
Maximum Blocking time (us)Enter the maximum amount of time, in us, during which the model will block for the reception of the expected data. Note that if several OpFcnXSGRecv blocks specify different blocking time values, the model will take into account the largest value.
Expected value(s)Enter the vector of data values which reception will cause the model to unblock This vector must have the same size as the output width of the first outport of the block.

Inputs

This block has no inputs.

Outputs

The block has one outport for each channel of the list of selected channels. All outports can have different widths, depending on how many data values are expected to be returned for each DataOutport of the XSG bitstream. The actual data width of the DataOut ports of the XSG bitstream is fixed during the preparation of the XSG model.

Characteristics and Limitations

This block has no special characteristics.

Direct FeedthroughNo
Discrete sample timeYes
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