Connecting to SMR 40 by Rohdes&Schwarz in Python
Instrument Card
The R&S SMR40 Signal Generator is designed as CW generator with pulse modulation capability with frequency coverage from 1 GHz up to 40 GHz. The lower limit can be expanded to 10 MHz by the optional Frequency Extension 0.01 GHz to 1 GHz (option B11).
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 SMR 40 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to the SMR 40 RF Signal Generator using Qcodes Community, you can use the following Python script:
from qcodes import Station, Instrumentfrom qcodes.instrument_drivers.rohde_schwarz.SMR40 import RohdeSchwarz_SMR40
# Create a station to hold the instrumentstation = Station()
# Connect to the SMR 40 RF Signal Generatorsmr40 = RohdeSchwarz_SMR40('smr40', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the instrument to the stationstation.add_component(smr40)
# Now you can use the instrumentsmr40.frequency.set(1e9) # Set the frequency to 1 GHzsmr40.power.set(-10) # Set the power to -10 dBmsmr40.on() # Turn on the signal generator
# Close the connectionsmr40.close()
Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR'
with the actual address of your SMR 40 RF Signal Generator.