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-01321// Views: AA-01321// Created: 2017-09-19 22:47:09// Last Updated: 2017-09-20 15:53:01
HowTo
How to Configure the Python Interpreter in RT-LAB 11.x+

How to Configure the Python Interpreter in RT-LAB 11.x+

The following article explains how to change the Python interpreter used by RT-LAB. For example, you might want to use a typical installation of Python (ex: C:\Python27) instead of the one provided in an installation of RT-LAB (ex: C:\OPAL-RT\RT-LAB\v11.2.0.64\python).

  1. In RT-LAB, click on the Window/Preference menu. In the following window, go to RT-LAB/Capabilities, and check the “Advanced User” capability.

  2. Click Apply and then OK.
  3. Go back to the Window/Preference menu. Navigate to "PyDev/Interpreters/Python Interpreter".

  4. Select any existing Python interpreters and click Remove.
  5. Click on New… to create a new Python interpreter. Click OK.

  6. In the next window, make sure that all the paths are selected. The two following paths are absolutely necessary in order to import the RtlabApi Python module. Click OK.

  7. The end result should look like this. Click Apply, then OK.