Support : Knowledge base

Knowledge Base

Welcome to OPAL-RT’s Knowledge Base

OPAL-RT offers a repository of support information for optimal use of its technology.

Loading…

Please note that OPAL-RT knowledge base is not fully optimized for mobile platforms.

For optimal experience, use a desktop computer.

Reference Number: AA-01775// Views: AA-01775// Created: 2019-11-28 21:35:46// Last Updated: 2019-11-29 15:15:53
HowTo
How To use Opal-RT Boards

The OPAL-RT Board driver is the user interface which must be used for configuring the available connectivity features of the various proprietary OPAL-RT boards. 

This article will help you get started with Opal-RT Boards quickly. Please note that for using this feature, the bitstream configuration file (.opal) is required.

RT-LAB Model

In the RT-LAB model, use OpInput and OpOutput blocks  for routing the signals, instead of the standard I/O blocks.
These blocks can be found in Simulink Library browser > RT-LAB



Please note that an OpCtrl block is not required in the model when using Opal-RT Boards.

  • For Analog I/Os and static digital I/Os, one OpInput or OpOutput can route 8 channels.
    However, for PWM and TSD I/Os (Event Generator and Event Detector), one OpInput or OpOutput is required per I/O channel.

  • It is a good idea to rename the OpInput and OpOutput blocks according to their destination I/O groups.
    This helps with making connections as explained later.

  • Examples for routing Analog IN and PWM OUT are as shown below.




I/O Interface

To add the Opal-RT Board in an RT-LAB project, right click on the I/O section> New> New I/O Interface


This will open the New I/O wizard. 

  • In General section, specify the bitstream configuration (.opal) file path 

  • After this step, the relevant details will populate automatically (chassis type, Slot information)



  • Select the desired settings for each I/O card of your system by selecting it on the left hand side pane. 

  • Please note that the settings available for each I/O card may differ slightly from what is shown below, depending on the particular bitstream configuration file that you use. 




                       
                      Settings for Analog In                                                                          Settings for Digital In

     

Settings for Digital Out



  • Please remember to select the "Enable" option for each I/O subsection that you intend to use.

  • Save the Opal-RT board (An * before the Opal-RT Board tab means that changes have not been saved yet.)

  • Now that the signal routing and I/O interface set up are both complete, please compile your model.

  • The connection points for both the model and Opal-RT Board will be available after the model has been compiled.

Configuration

  • After the I/O Interface has been set up, connections between the model and the Opal-RT Board must be performed. 

  • Double click on the active project’s Configuration in RT-LAB project explorer to open it.

  • How to perform the connections is as shown below:


The major advantage with Opal-RT Boards is that for any change in the connection between RT-LAB model and the Opal-RT Board, we do not need to recompile the model.