Connecting to ZVL 13 by Rohdes&Schwarz in Python
Instrument Card
The ZVL is a compact, cost-efficient, powerful and portable network analyzer. It is ideal for use in development, production, and service. It is the only instrument to combine the functions of a network analyzer, spectrum analyzer, and power meter in a single box, making you much more efficient.
Device Specification: here
Manufacturer card: ROHDES&SCHWARZ
Rohde & Schwarz GmbH & Co KG is an international electronics group specializing in the fields of electronic test equipment, broadcast & media, cybersecurity, radiomonitoring and radiolocation, and radiocommunication.
- Headquarters: Munich, Germany
- Yearly Revenue (millions, USD): 2500
- Vendor Website: here
Connect to the ZVL 13 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a ZVL 13 Network Analyzer using Qcodes Community, you can use the following Python script:
from qcodes import Stationfrom qcodes.instrument_drivers.rohde_schwarz.ZVL13 import ZVL13
# Create a station to hold the instrumentsstation = Station()
# Connect to the ZVL 13 Network Analyzerzvl13 = ZVL13('zvl13', 'TCPIP0::192.168.1.1::inst0::INSTR')station.add_component(zvl13)
# Print the available parameters and functions of the ZVL 13print(zvl13.parameters)print(zvl13.functions)
# Set the start frequency, stop frequency, and number of pointszvl13.start(1e6)zvl13.stop(1e9)zvl13.npts(101)
# Perform a frequency sweep and get the magnitude and phase datamag, phase = zvl13.trace_mag_phase()
# Print the magnitude and phase dataprint(mag)print(phase)
# Disconnect from the instrumentszvl13.close()
Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR'
with the actual address of your ZVL 13 Network Analyzer.