FAQs from Rohde & Schwarz

AREG simulation using the OS Interface (OSI) on MS Windows

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 MS Windows 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=windows

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

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OS-Interface__screen01.jpg

2.) Download the latest protobuf compiler release (for example protoc-21-12-win64.zip) from

https://github.com/protocolbuffers/protobuf/releases.

3.) Unpack protobuf compiler to a directory of your choice and add the bin folder to your PATH variable

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OS-Interface__screen02.jpg

4.) Restart Pycharm and check the availability of protoc in the Pycharm Terminal.

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

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OS-Interface__screen03.jpg

5.) Install the GIT package for your operating system from https://git-scm.com/downloads.

The standard settings should be fine to also get the path variable added to your system.

6.) Restart Pycharm and check the availability of git in the Pycharm Terminal like in step 4

(but typing "git" instead of)

7.) Add the OSI-Package in PyCharm:

Rohde-Schwarz-FAQ-AREG-simulation-using-the-OS-Interface__screen04.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-OS-Interface__screen05.jpg

8.) After some minutes the installation should be fine.

In case the computer has no access to that repository, please check the Proxi settings of your PyCharm installation

as well as the git config file settings.

In addition check the PyCharm version as there has been a known Proxi bug in a dedicated version which

is definitely solved with version 2022.3.1.

9.) To run the script add the package "RsInstrument", change the path settings of the OSI-file first.

10.) The sample script should now work fine in your PyCharm installation