These instructions assume Windows 10.
The latest releases can be found here:
Python Releases for Windows | Python.org
Choose the following installation options:
A User Access Control dialog may pop up asking for access privileges; click Ok to accept.
The script uses the python package (library) rohdeschwarz. Python comes with a package manager, pip, which can be used from the command line.
Open your terminal of choice from the start menu (e.g. cmd.exe or Powershell).
If you are off-VPN, type in:
pip install rohdeschwarzThis will fail behind VPN unless we add proxy information. Try again with your username and proxy (internet) password:
pip install --proxy "https://<username>:<password>@<proxy>:<port>"Note that the port is optional; the default value is 80.
Here is an example:
pip install --proxy "https://elmo:OpenSesame@proxy.sesame-street.org"Note that any special characters in your password will have to be url encoded.
The python installer associates file extension .py with python; you can double-click the script to run it.
If the window disappears too quickly (e.g. due to an error), run the script from the command line instead:
cd path/to/scpi_script.py
python scpi_script.pyThe most common error is due to connection timeout, for example when the instrument cannot be reached.
> python .\scpi_script.py
Traceback (most recent call last):
File ".\scpi_script.py", line 6, in <module>
instr.open_tcp('localhost')
File "C:\Users\VM\AppData\Local\Programs\Python\Python38\lib\site-packages\rohdeschwarz\instruments\genericinstrument.py", line 32, in open_tcp
self.bus.open(ip_address, socket)
File "C:\Users\VM\AppData\Local\Programs\Python\Python38\lib\site-packages\rohdeschwarz\bus\tcp.py", line 86, in open
self.__socket.connect((address, port))
socket.timeout: timed out