Vector Signal Generator · SCPI command reference

Rohde & Schwarz SGT100A SCPI commands

The Rohde & Schwarz SGT100A vector signal generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 47 commands for it, 19 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the SGT100A on a real bench.

Commands
47
Queries
19
Subsystems
7
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz SGT100A and writes the report from the measured results.

Get started

Control the Rohde & Schwarz SGT100A from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Rohde & Schwarz SGT100A's VISA address

# Paste the address of your Rohde & Schwarz SGT100A (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("OUTPut:STATe ON")  # Turn On RF Output
print(inst.query("OUTPut:STATe?"))  # Read RF Output State

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz SGT100A and writes the report from the measured results.

Get started

Run a SGT100A test without writing code

Describe the test in a sentence, for example “turn on rf output on the SGT100A, then read rf output state and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

47 commands in 7 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Source (SOURce) (27)

CommandWhat it doesArguments
SOURce:FREQuency:CW <Freq>Set Frequency. Sets the frequency of the RF output signal in CW/fixed mode in Hz (1 MHz to 6 GHz depending on installed options).Number
SOURce:FREQuency:CW?Read Frequency. Reads the current CW/fixed RF output frequency in Hz.None
SOURce:FREQuency:OFFSet <Freq>Set Frequency Offset. Sets a frequency offset value added to the displayed/programmed RF frequency to account for external mixers etc.Number
SOURce:FREQuency:OFFSet?Read Frequency Offset. Reads the current RF frequency offset value in Hz.None
SOURce:POWer:LEVel:IMMediate:AMPLitude <Power>Set Power Level. Sets the RF output level (power) applied to the DUT, in dBm.Number
SOURce:POWer:LEVel:IMMediate:AMPLitude?Read Power Level. Reads the current RF output level in dBm.None
SOURce:POWer:ALC:STATe ONTurn On ALC. Activates the internal automatic level control (ALC) permanently.None
SOURce:POWer:ALC:STATe OFFTurn Off ALC. Deactivates the automatic level control; the instrument operates in Sample and Hold mode.None
SOURce:POWer:ALC:STATe?Read ALC State. Reads the current ALC (automatic level control) state.None
SOURce:ROSCillator:SOURce <Source>Set Reference Oscillator Source. Selects between the internal or an external reference oscillator frequency.Text: INTernal,EXTernal
SOURce:ROSCillator:SOURce?Read Reference Oscillator Source. Reads whether the internal or external reference oscillator is selected.None
SOURce:ROSCillator:EXTernal:FREQuency <Freq>Set External Reference Frequency. Selects the expected frequency of the external reference input signal (10 MHz, 5 MHz, 13 MHz, or a variable/user-defined value).Text: 10MHZ,100MHZ,1000MHZ,13MHZ
SOURce:ROSCillator:EXTernal:FREQuency?Read External Reference Frequency. Reads the configured external reference input frequency setting.None
SOURce:PHASe <Phase>Set Phase. Sets the phase variation of the RF output signal relative to the current phase, in degrees (-720 to 720).Number: -720,720
SOURce:PHASe?Read Phase. Reads the current RF phase variation setting in degrees.None
SOURce:BB:ARBitrary:STATe ONTurn On ARB. Activates the ARB (arbitrary waveform) generator baseband signal.None
SOURce:BB:ARBitrary:STATe OFFTurn Off ARB. Deactivates the ARB (arbitrary waveform) generator baseband signal.None
SOURce:BB:ARBitrary:STATe?Read ARB State. Reads whether the ARB generator is currently ON or OFF.None
SOURce:BB:ARBitrary:WAVeform:SELect <Name>Load ARB Waveform. Selects/loads a waveform file from the default directory for the ARB generator (file extension can be omitted).Text
SOURce:BB:ARBitrary:WAVeform:SELect?Read ARB Waveform. Reads the name of the currently selected ARB waveform file.None
SOURce:BB:ARBitrary:TRIGger:SOURce <Source>Set ARB Trigger Source. Selects the trigger source that starts the ARB waveform (internal, external, other baseband, external baseband connector, or baseband synchronization).Text: INTernal,EXTernal
SOURce:BB:ARBitrary:TRIGger:SOURce?Read ARB Trigger Source. Reads the current ARB trigger source.None
SOURce:BB:ARBitrary:TRIGger:EXECuteExecute ARB Trigger. Manually triggers ARB waveform generation for an internal trigger event.None
SOURce:BB:ARBitrary:PRESetPreset ARB. Resets all ARB generator parameters to their default state.None
SOURce:IQ:STATe ONTurn On IQ Modulation. Enables the I/Q modulation of the RF output signal.None
SOURce:IQ:STATe OFFTurn Off IQ Modulation. Disables the I/Q modulation of the RF output signal.None
SOURce:IQ:STATe?Read IQ Modulation State. Reads whether I/Q modulation is currently enabled.None

Output (OUTPut) (8)

CommandWhat it doesArguments
OUTPut:STATe ONTurn On RF Output. Activates the RF output signal.None
OUTPut:STATe OFFTurn Off RF Output. Deactivates the RF output signal.None
OUTPut:STATe?Read RF Output State. Reads whether the RF output is currently ON or OFF.None
OUTPut:STATe:PON <Pon>Set Power On Output State. Defines the state of the RF output signal when the instrument is switched on.Text: OFF,UNCHanged
OUTPut:STATe:PON?Read Power On Output State. Reads the configured RF output state used at power-on.None
OUTPut:AMODe FIXedSet Attenuator Mode Manual. Sets the RF output attenuator to manual mode so the attenuation value can be fixed.None
OUTPut:AMODe AUTOSet Attenuator Mode Auto. Sets the RF output attenuator to automatic mode (attenuation follows level setting).None
OUTPut:AMODe?Read Attenuator Mode. Reads the current RF output attenuator mode.None

System (SYSTem) (2)

CommandWhat it doesArguments
SYSTem:ERRor:ALL?Read Error Queue. Queries and clears all unread entries from the error/event queue; returns 0,'No error' if the queue is empty.None
SYSTem:ERRor:COUNt?Read Error Count. Reads the number of entries currently in the error/event queue.None

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).None
*RSTReset. Resets the instrument to its default state.None
*CLSClear Status. Clears all event registers and the error queue.None
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.None
*OPC?Operation Complete. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Waits until all pending operations are complete before continuing.None
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the SGT100A and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Rohde & Schwarz SGT100A support SCPI remote control?

Yes. The Rohde & Schwarz SGT100A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 47 SCPI commands for it: 19 queries that read values or state, and 28 settings and actions.

How do I control the Rohde & Schwarz SGT100A from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, OUTPut:STATe ON and OUTPut:STATe?.

Which command reads a value from the Rohde & Schwarz SGT100A?

OUTPut:STATe? (read rf output state). Reads whether the RF output is currently ON or OFF. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Rohde & Schwarz SGT100A without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Rohde & Schwarz SGT100A through the TestFlow desktop app, and writes the report from the measured results.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.