Rohde & Schwarz SMB 100A RF and Microwave Signal Generator

class pymeasure.instruments.rohdeschwarz.RohdeSMB100A(resourceName, **kwargs)

Bases: pymeasure.instruments.instrument.Instrument

Instrument code to control a Rohde & Schwarz SMB100A RF Signal Generator.

from pymeasure.instruments.rohdeschwarz import RohdeSMB100A

sig = RohdeSMB100A("GPIB0::29", read_termination = '\n', write_termination = '\n', timeout=None)

# reset instrument to clear previous settings.
sig.reset()

# set freq and power units
sig.freq_unit = "MHz"
sig.power_unit = "DBM"

# set frequency and power levels
sig.power_level = -20 #dBm
sig.fixed_freq = 700 #MHz

# turn on signal
sig.output = "ON"

# perform any measurements needed.

# turn off signal
sig.output = "OFF"
fixed_freq

Sets the fixed frequency of the RF signal.

The range of allowed frequencies depends on the instrument option, which can be checked using get_instrument_options().

sig.fixed_freq = 1 #GHz (default)

To change default frequency units, change the object variable freq_unit. For example, to set frequency to 1 MHz,

sig.freq_unit = "MHz"
sig.fixed_freq = 1
get_instrument_options

Get the options installed on instrument.

sig.get_instrument_options
output

Turns the RF output on and off.

  • Values: ON, OFF
sig.output = "ON"
power_level

Sets the RF power level in dBm applied to DUT.

If a level offset is included, the output power level is adjusted accordingly. The power level is not checked to see if the instrument can support it because it depends on the option installed. When setting power level, please refer the operation manual to ensure that your instrument can support it at your operating frequency. Use get_instrument_options() method to identify the options installed in the instrument.

sig.power_level = -5
power_offset

Sets the RF offset power level in dB.

Specifies the constant level offset of a downstream attenuator/amplifier. If level offset is entered, the level entered with power_level() no longer corresponds to the RF output level at connector.

sig.power_offset = 5
power_unit

Defines the default unit for power parameters. This setting affects the GUI, as well as all remote control commands that determine power values.

  • Values: V, DBUV, DBM
sig.power_unit = "DBM" # default setting