The Rohde & Schwarz FPC1000 spectrum analyzer is controlled remotely with SCPI commands. TestFlow's instrument library holds 40 commands for it, 11 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 FPC1000 on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz FPC1000 and writes the report from the measured results.
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 FPC1000's VISA address
# Paste the address of your Rohde & Schwarz FPC1000 (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("INPut:ATTenuation:AUTO ON") # Set Input Attenuation Auto
print(inst.query("FREQuency:CENTer?")) # Read Center Frequency
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz FPC1000 and writes the report from the measured results.
Describe the test in a sentence, for example “set input attenuation auto on the FPC1000, then read center frequency 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.
40 commands in 9 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| FREQuency:CENTer <Hz> | Set Center Frequency. Sets the center frequency in Hz. | Number |
| FREQuency:CENTer? | Read Center Frequency. Queries the current center frequency. | None |
| FREQuency:SPAN <Hz> | Set Span. Sets the frequency span in Hz. | Number |
| FREQuency:SPAN? | Read Span. Queries the current frequency span. | None |
| FREQuency:STARt <Hz> | Set Start Frequency. Sets the start frequency in Hz. | Number |
| FREQuency:STOP <Hz> | Set Stop Frequency. Sets the stop frequency in Hz. | Number |
| FREQuency:STARt? | Read Start Frequency. Queries the current start frequency. | None |
| FREQuency:STOP? | Read Stop Frequency. Queries the current stop frequency. | None |
| Command | What it does | Arguments |
|---|---|---|
| BANDwidth:RESolution <Hz> | Set RBW. Sets the resolution bandwidth in Hz. | Number |
| BANDwidth:RESolution? | Read RBW. Queries the current resolution bandwidth. | None |
| BANDwidth:RESolution:AUTO ON | Set RBW Auto. Enables automatic resolution bandwidth selection. | None |
| BANDwidth:RESolution:AUTO OFF | Set RBW Manual. Disables automatic resolution bandwidth selection. | None |
| BANDwidth:VIDeo <Hz> | Set VBW. Sets the video bandwidth in Hz. | Number |
| BANDwidth:VIDeo? | Read VBW. Queries the current video bandwidth. | None |
| BANDwidth:VIDeo:AUTO ON | Set VBW Auto. Enables automatic video bandwidth selection. | None |
| BANDwidth:VIDeo:AUTO OFF | Set VBW Manual. Disables automatic video bandwidth selection. | None |
| Command | What it does | Arguments |
|---|---|---|
| INPut:ATTenuation <dB> | Set Input Attenuation. Sets the input attenuation in dB. | Number |
| INPut:ATTenuation? | Read Input Attenuation. Queries the current input attenuation. | None |
| INPut:ATTenuation:AUTO ON | Set Input Attenuation Auto. Enables automatic input attenuation control. | None |
| INPut:ATTenuation:AUTO OFF | Set Input Attenuation Manual. Disables automatic input attenuation control. | None |
| INPut:GAIN:STATe ON | Preamp On. Enables the input preamplifier. | None |
| INPut:GAIN:STATe OFF | Preamp Off. Disables the input preamplifier. | None |
| INPut:GAIN:STATe? | Read Preamp. Queries the preamplifier state. | None |
| Command | What it does | Arguments |
|---|---|---|
| DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <dBm> | Set Reference Level. Sets the display reference level in dBm. | Number |
| DISPlay:WINDow:TRACe:Y:SCALe:RLEVel? | Read Reference Level. Queries the current display reference level. | None |
| DISPlay:WINDow:TRACe:MODE AVERage | Average On. Enables sweep averaging. | None |
| DISPlay:WINDow:TRACe:MODE WRITe | Average Off. Disables sweep averaging. | None |
| DISPlay:WINDow:TRACe:MODE? | Read Average State. Queries whether sweep averaging is enabled. | None |
| Command | What it does | Arguments |
|---|---|---|
| SWEep:TIME <Sec> | Set Sweep Time. Sets the sweep time in seconds. | Number |
| SWEep:TIME? | Read Sweep Time. Queries the current sweep time. | None |
| SWEep:TIME:AUTO ON | Set Sweep Time Auto. Enables automatic sweep time calculation. | None |
| SWEep:TIME:AUTO OFF | Set Sweep Time Manual. Disables automatic sweep time calculation. | None |
| SWEep:COUNt <N> | Set Average Count. Sets the number of sweep averages. | Number: 0-999 |
| Command | What it does | Arguments |
|---|---|---|
| INITiate:IMMediate | Single Sweep. Starts a single sweep measurement. | None |
| INITiate:CONTinuous ON | Continuous Sweep. Enables continuous sweep mode. | None |
| INITiate:CONTinuous OFF | Stop Sweep. Stops continuous sweep mode. | None |
| Command | What it does | Arguments |
|---|---|---|
| <SCPI> | SCPI. Sends a custom SCPI command with optional parameters. | Text |
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last mearurment to a variable | Text |
This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the FPC1000 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.
Yes. The Rohde & Schwarz FPC1000 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 40 SCPI commands for it: 11 queries that read values or state, and 29 settings and actions.
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?, INPut:ATTenuation:AUTO ON and FREQuency:CENTer?.
FREQuency:CENTer? (read center frequency). Queries the current center frequency. The full list of queries is in the command reference on this page, grouped by subsystem.
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 FPC1000 through the TestFlow desktop app, and writes the report from the measured results.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.