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-02182// Views: AA-02182// Created: 2023-05-19 14:55:59// Last Updated: 2023-05-19 15:50:53
HowTo
How to Set up Multiple Configurations for Different Pickering Devices in a Single RT-LAB Project

How to Set up Multiple Configurations for Different Pickering Devices in a Single RT-LAB Project

This article will show you how to save a configuration within your RT-Lab project for each of your Pickering devices. Follow the steps below:

  1. Open the RT-LAB project
  2. Set the Pickering serial numbers of the first bench (SN1)
  3. Right-click on Configuration (Default), Save configuration as…, Provide a configuration name (SN1 for instance)


  4. Set the Pickering serial numbers of the second bench (SN2)
  5. Repeat step 3 but choose a different configuration name (SN2 for instance)
  6. After closing and reopening the RT-LAB project you should now see a popup windows asking you to select the configuration you wish to load
  7. You can check “Do not ask again” to prevent this window from appearing again the next time you open the RT-Lab project and keep the configuration you have chosen previously. If you want the popup window to appear again you will have to edit the .llp file located in your project folder and set to 0 the following variable:

How to automate the configuration selection in a Python script

As of now there is no direct way to select the configuration via a Python script though the RT-LAB API, but there is an alternative:

  1. Create 2 folders (SN1 and SN2) in

    \configurations\SyncExchangerRegistry\DriverConfigs\SN1
    \configurations\SyncExchangerRegistry\DriverConfigs\SN2

  2. Place a copy of the .opal Pickering configuration file in these folders with the correct serial numbers
  3. Write a Python script that will copy the correct file to the \configurations\SyncExchangerRegistry\DriverConfigs folder according to the desired configuration. This should be done before calling OpenProject() function. 
Note that there is no need to create multiple configurations in RT-LAB, so the (Default) configuration is sufficient if you do not manually change the configuration in RT-LAB.