Connecting to R&S SGS100A by Rohdes&Schwarz in Python
Instrument Card
The R&S®SGS100A is an RF source designed to meet the requirements of automated test systems. It is available as a CW source or as a vector signal generator with an integrated I/Q modulator. With its frequency range of up to 12.75 GHz, the vector signal generation version covers the essential digital signals. The CW version can be used as a flexible local oscillator and for interference testing against mobile radio standards.
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 R&S SGS100A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Qcodes to connect to a R&S SGS100A RF Signal Generator:
import qcodes as qcfrom qcodes.instrument_drivers.rohde_schwarz.SGS100A import RohdeSchwarzSGS100A
# Create an instance of the instrumentsg = RohdeSchwarzSGS100A('sg', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Connect to the instrumentsg.connect()
# Print the frequency of the signal generatorprint(sg.frequency())
# Set the frequency to 1 GHzsg.frequency(1e9)
# Turn on the RF outputsg.on()
# Turn off the RF outputsg.off()
# Disconnect from the instrumentsg.disconnect()
Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR'
with the actual address of your signal generator.