FAQs from Rohde & Schwarz

AREG simulation using the OS Interface (OSI) on Linux

Question:

I want to use the Open Simulation Interface to create scenarios for my AREG800.

Do you have an example available showing how to install the required packages, create a simulation and remote control the generator?

Answer:

The following knowledge article describes the setup for Linux Mint 21.1 using the PyCharm IDE.
Please also find the appropriate Python example script in the attachment of this mail.

1.) Install the latest PyCharm release from
https://www.jetbrains.com/pycharm/download/#section=linux

and create a new project (for example "OSI").

1.a.) To run the example script the RsIntsrument package is needed.
Choose it from the Python Packages section and click on the "Install" button

2.) Install the protobuf compiler in your LINUX terminal with the following command:sudo apt install protobuf-compiler

3.) (Re-)Start Pycharm

4.) In the Pycharm Terminal check the availability of protoc (Currently not sure if package protobuf must already be installed before in the Project Environment).
It should respond with the help text if you only enter "protoc":

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen01.jpg

5.) Install the git package compiler in your LINUX terminal with the following command:

sudo apt install git

6.) (Re-)Start Pycharm

7.) In the Pycharm Terminal check the availability of git.

It should respond with the help text if you only enter "git":

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen02.jpg

8.) Add the OSI-Package in PyCharm:

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen03.jpg

Choose "from Version Control" and add the following string to the next dialog:

https://github.com/OpenSimulationInterface/open-simulation-interface.git

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen04.jpg

Do not forget to click "OK"

9.) After some minutes the installation should be fine and you are able to run the example script in your PyCharm installation

In some distributions only an elder version of the protoc package is available. In such cases either perform the update manually following the link (see error message – More information) or deinstall and change to the mentioned version of protobuf.

For example in LINUX Mint 20.01 the following error message occurs when running the script:

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen05.jpg

It runs fine after changing the protobuf package version to 3.20.3:

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OSI-Interface_on_linux__screen06.jpg