HaralDev / HMC804x-Python

Python interface for Rohde & Schwarz HMC8041, HMC8042, HMC8043 all in one class, using PyVisa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HMC804x interface for Python

Python interface for Rohde & Schwarz HMC8041, HMC8042, HMC8043 all in one class, using PyVisa.


Figure 1: Rohde & Schwarz HMC devices - three HMC8041 and one HMC8042 (top right)

Workings

Class works with all three HMC804x devices, might work with other similar product which use SCPI commands. The power supply has to be connected to the same network as the computer used.

Tips

  • See the bottom of the script how to implement the instrument in a measurement loop.
  • Check if you can interface with HMC device by accessing the IP address in the browser. Find the HMC IP address on the device with "Setup > Interface > PARAMETER". You might need to set the first two numbers to the same address as your PCs address. Example: Computer IP address is 169.154.1.1 and HMC is 180.195.523.12 > set the HMC address to 169.154.x.x (x's do not matter).
  • Install the Rohde&Schwarz VISA tester interface, it makes playing around with commands a lot easier.
  • See the manuals HMC804x manual and HMC804x SCPI Manual
  • The type of connection might be different, for me it was a TCPIP0::{ip_address}::inst0::INSTR connection (line 22). See types of connections at PyVisa documentation.

About

Python interface for Rohde & Schwarz HMC8041, HMC8042, HMC8043 all in one class, using PyVisa.


Languages

Language:Python 100.0%