Connecting to SMW 200A-B140 by Rohdes&Schwarz in Python
Instrument Card
The Rohde & Schwarz SMW200A-B140 is the vector signal generator for the most demanding applications
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 SMW 200A-B140 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes Community to connect to a SMW 200A - B140 RF Signal Generator:
import qcodes as qcfrom qcodes.instrument_drivers.rohde_schwarz.SMW200A import SMW200A
# Create an instance of the SMW200A instrumentsmw = SMW200A('smw', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Connect to the instrumentsmw.connect()
# Print the instrument IDprint(smw.IDN())
# Set the frequency to 1 GHzsmw.frequency(1e9)
# Set the power level to -10 dBmsmw.power(-10)
# Enable the outputsmw.output(True)
# Disconnect from the instrumentsmw.disconnect()
Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR'
with the actual VISA address of your SMW 200A instrument.