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
Device Specification: here
Manufacturer card: 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
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from qcodes import Stationfrom qcodes.instrument_drivers.copper_mountain.m5180 import M5180
# Create a station to hold the instrumentsstation = Station()
# Connect to the M5180 instrumentm5180 = M5180('m5180', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the M5180 instrument to the stationstation.add_component(m5180)
# Print the available parameters of the M5180 instrumentprint(m5180.parameters)
# Set the start frequency to 1 GHzm5180.start(1e9)
# Set the stop frequency to 10 GHzm5180.stop(10e9)
# Set the number of points to 1001m5180.npts(1001)
# Perform a frequency sweep and get the S11 magnitude and phases11_mag, s11_phase = m5180.s11()
# Print the S11 magnitude and phaseprint("S11 Magnitude:", s11_mag)print("S11 Phase:", s11_phase)
# Disconnect from the instrumentsm5180.close()
Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR'
with the actual address of your M5180 instrument.