Skip to content

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).

SMR 40

Device Specification: here

Manufacturer card: ROHDES&SCHWARZ

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

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, Instrument
from qcodes.instrument_drivers.rohde_schwarz.SMR40 import RohdeSchwarz_SMR40
# Create a station to hold the instrument
station = Station()
# Connect to the SMR 40 RF Signal Generator
smr40 = RohdeSchwarz_SMR40('smr40', 'TCPIP0::192.168.1.1::inst0::INSTR')
# Add the instrument to the station
station.add_component(smr40)
# Now you can use the instrument
smr40.frequency.set(1e9) # Set the frequency to 1 GHz
smr40.power.set(-10) # Set the power to -10 dBm
smr40.on() # Turn on the signal generator
# Close the connection
smr40.close()

Note: Replace 'TCPIP0::192.168.1.1::inst0::INSTR' with the actual address of your SMR 40 RF Signal Generator.