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 Multi Event Gen




This block enables the use and configuration of digital output channels present on the Pulse Output Module board. This board is designed to generate a bipolar signal with variable frequency and duty cycle.


ControllerNameEach functionality block such as the OpFcn Multi-Event Gen block must refer to an OpCtrl block such as the OPCtrl POModule block, that will manage the data transfer with the IO board. The binding between OpFcn and OpCtrl blocks is performed via the use of the Controller name that each OpCtrl block uniquely defines. In this case, the controller name could be 'POModuleCtrl 0' in both blocks. 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 OpFcn Multi-Event Gen block, the OpFcn Multi-Event Gen block is simply disabled and returns 0s.

The image below shows an example of a controller name, here 'POModuleCtrl 0', used with success.

Selection of FunctionalitiesThis field is used to select the channels that will be driven by the inputs of this block. For the example above, the block refers to channels 0, 1 and 2 (IO_DIN_PO1, IO_DIN_PO2, and IO_DIN_PO3).
Signal PolaritiesFor each channel indicated in "Selection of Functionalities" field, the signal polarity has to be defined. 1 represented active hight and 0 active low.
Max RT-EventsThe maximum number of events or transitions that can occur during a single step. Over this number, events are ignored and not output.


RTE: Vector of RTE-type signals, containing the state and time of each digital channel being used.


This block has no outputs.

Characteristics and Limitations

Direct FeedthroughYes
Discrete sample timeYes
XHP supportNo
Work offlineYes

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