Skip to content

Connecting to M5180 2-Port 18 GHz Analyzer by Coppermountain in Python

Instrument Card

The M5180 is a 2-port, 18 GHz Vector Network Analyzer that delivers metrology-grade performance in a more economical package that excludes a number of advanced features

M5180 2-Port 18 GHz Analyzer

Device Specification: here

Manufacturer card: COPPERMOUNTAIN

COPPERMOUNTAIN

Copper Mountain Technologies develops innovative RF test and measurement solutions for engineers worldwide that enable engineers to extend their reach.

  • Headquarters: US
  • Yearly Revenue (millions, USD): 301
  • Vendor Website: here

Connect to the M5180 2-Port 18 GHz Analyzer in Python

PROTOCOLS > SCPI

from qcodes import Station
from qcodes.instrument_drivers.copper_mountain.m5180 import M5180
# Create a station to hold the instruments
station = Station()
# Connect to the M5180 instrument
m5180 = M5180('m5180', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the M5180 instrument to the station
station.add_component(m5180)
# Print the available parameters of the M5180 instrument
print(m5180.parameters)
# Set the start frequency to 1 GHz
m5180.start(1e9)
# Set the stop frequency to 10 GHz
m5180.stop(10e9)
# Set the number of points to 1001
m5180.npts(1001)
# Perform a frequency sweep and get the S11 magnitude and phase
s11_mag, s11_phase = m5180.s11()
# Print the S11 magnitude and phase
print("S11 Magnitude:", s11_mag)
print("S11 Phase:", s11_phase)
# Disconnect from the instruments
m5180.close()

Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR' with the actual address of your M5180 instrument.