Spectrum Analyzer · SCPI command comparison

Keysight N9000B vs Rohde & Schwarz FPC1000: SCPI commands and remote control compared

In TestFlow's instrument library, the Keysight N9000B takes 84 SCPI commands, 27 of them queries, and the Rohde & Schwarz FPC1000 takes 40 SCPI commands, 11 of them queries. That is 44 more on the N9000B. Counting distinct command headers (the command path without its arguments), 4 are accepted by both, 69 exist only on the N9000B, and 25 only on the FPC1000. 5% of the N9000B's command headers also exist on the FPC1000.

Both libraries have commands under INITiate and DISPlay. Only the N9000B has SENSe, CALCulate, CONFigure, TRACe, INSTrument, and TRIGger and 5 more. Only the FPC1000 has FREQuency, BANDwidth, INPut, and SWEep.

Only the N9000B library has an operation-complete command (*OPC?); the FPC1000 library has none. Only the N9000B library has an error-queue read (SYSTem:ERRor?); the FPC1000 library has none.

N9000B commands
84
FPC1000 commands
40
Shared headers
4
Unique headers
94

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight N9000B or Rohde & Schwarz FPC1000 and writes the report from the measured results.

Get started

N9000B vs FPC1000 at a glance

Counts come from TestFlow's instrument library, the command sets its AI agent uses to drive each instrument. A distinct command header is the command path without its arguments, so :OUTPut ON and :OUTPut OFF count once.

Keysight N9000BRohde & Schwarz FPC1000
Commands in TestFlow's library8440
Queries (read a value or state)2711
Settings and actions5729
Subsystems179
Distinct command headers7329
Headers the other lacks6925
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?Not in library
Models on this command setN9000BFPC1000

Commands both accept

4 command headers are in both libraries. Where the FPC1000 library writes the command differently, its form is shown under the N9000B's.

CommandWhat it does
:INITiate:CONTinuous ONContinuous Sweep On. Sets the analyzer to continuous (free-run) sweep mode.
:DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <Level>FPC1000: DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <dBm>Set Ref Level. Sets the amplitude reference level (top of the graticule) in the current Y-axis units.
:INITiate:IMMediateInitiate Sweep. Triggers a new single sweep/measurement.
:DISPlay:WINDow:TRACe:Y:SCALe:RLEVel?Read Ref Level. Returns the current reference level.

Only on the Keysight N9000B

69 command headers in the N9000B library have no match in the FPC1000 library. Below are 20 of them from the 6 largest subsystems; the full list is in the Keysight N9000B command reference.

SENSe (33 only on the N9000B)

CommandWhat it does
:SENSe:FREQuency:CENTer <Frequency>Set Center Freq. Sets the center frequency of the displayed span in Hz.
:SENSe:FREQuency:CENTer?Read Center Freq. Returns the current center frequency in Hz.
:SENSe:FREQuency:STARt <Frequency>Set Start Freq. Sets the start (left edge) frequency of the sweep in Hz.
:SENSe:FREQuency:STARt?Read Start Freq. Returns the current start frequency in Hz.

CALCulate (10 only on the N9000B)

CommandWhat it does
:CALCulate:MARKer1:STATe ONMarker On. Turns marker 1 on (normal marker).
:CALCulate:MARKer1:X <Frequency>Set Marker X. Sets the X-axis (frequency) position of marker 1 in Hz.
:CALCulate:MARKer1:X?Read Marker X. Returns the X-axis (frequency) position of marker 1 in Hz.
:CALCulate:MARKer1:Y?Read Marker Y. Returns the Y-axis (amplitude) value at marker 1.

IEEE 488.2 common (*) (7 only on the N9000B)

CommandWhat it does
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.

CONFigure (3 only on the N9000B)

CommandWhat it does
:CONFigure:SANalyzerConfig Swept SA. Selects and configures the Swept SA measurement with its default settings.
:CONFigure:CHPowerConfig Channel Power. Selects and configures the Channel Power measurement.
:CONFigure:OBWidthConfig OBW. Selects and configures the Occupied Bandwidth measurement.

TRACe (3 only on the N9000B)

CommandWhat it does
:TRACe1:TYPE <Type>Set Trace Type. Sets trace 1 update type (clear write, average, max hold, or min hold).
:TRACe1:TYPE?Read Trace Type. Returns the current trace 1 type.
:TRACe:DATA? TRACE1Read Trace Data. Returns the amplitude data for trace 1 as a comma-separated list.

FETCh (2 only on the N9000B)

CommandWhat it does
:FETCh:CHPower?Read Channel Power. Returns the most recent Channel Power measurement result.
:FETCh:OBWidth?Read OBW. Returns the most recent Occupied Bandwidth measurement result.

Only on the Rohde & Schwarz FPC1000

25 command headers in the FPC1000 library have no match in the N9000B library. Below are 18 of them from the 5 largest subsystems; the full list is in the Rohde & Schwarz FPC1000 command reference.

FREQuency (8 only on the FPC1000)

CommandWhat it does
FREQuency:CENTer <Hz>Set Center Frequency. Sets the center frequency in Hz.
FREQuency:CENTer?Read Center Frequency. Queries the current center frequency.
FREQuency:SPAN <Hz>Set Span. Sets the frequency span in Hz.
FREQuency:SPAN?Read Span. Queries the current frequency span.

BANDwidth (6 only on the FPC1000)

CommandWhat it does
BANDwidth:RESolution <Hz>Set RBW. Sets the resolution bandwidth in Hz.
BANDwidth:RESolution?Read RBW. Queries the current resolution bandwidth.
BANDwidth:RESolution:AUTO ONSet RBW Auto. Enables automatic resolution bandwidth selection.
BANDwidth:VIDeo <Hz>Set VBW. Sets the video bandwidth in Hz.

INPut (5 only on the FPC1000)

CommandWhat it does
INPut:ATTenuation <dB>Set Input Attenuation. Sets the input attenuation in dB.
INPut:ATTenuation?Read Input Attenuation. Queries the current input attenuation.
INPut:ATTenuation:AUTO ONSet Input Attenuation Auto. Enables automatic input attenuation control.
INPut:GAIN:STATe ONPreamp On. Enables the input preamplifier.

SWEep (4 only on the FPC1000)

CommandWhat it does
SWEep:TIME <Sec>Set Sweep Time. Sets the sweep time in seconds.
SWEep:TIME?Read Sweep Time. Queries the current sweep time.
SWEep:TIME:AUTO ONSet Sweep Time Auto. Enables automatic sweep time calculation.
SWEep:COUNt <N>Set Average Count. Sets the number of sweep averages.

DISPlay (2 only on the FPC1000)

CommandWhat it does
DISPlay:WINDow:TRACe:MODE AVERageAverage On. Enables sweep averaging.
DISPlay:WINDow:TRACe:MODE?Read Average State. Queries whether sweep averaging is enabled.

Control both from Python

With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold :INITiate:CONTinuous (continuous sweep on), and the same line runs on each. For the reading, both libraries hold :DISPlay:WINDow:TRACe:Y:SCALe:RLEVel? (read ref level), and the same line runs on each. For the basics, see the PyVISA tutorial.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find both VISA addresses

a = rm.open_resource("PASTE_N9000B_ADDRESS")  # Keysight N9000B
b = rm.open_resource("PASTE_FPC1000_ADDRESS")  # Rohde & Schwarz FPC1000
for inst in (a, b):
    inst.timeout = 5000  # ms
    print(inst.query("*IDN?"))

# The same setting on both: Continuous Sweep On
a.write(":INITiate:CONTinuous ON")
b.write("INITiate:CONTinuous ON")

# The same reading on both: Read Ref Level
print(a.query(":DISPlay:WINDow:TRACe:Y:SCALe:RLEVel?"))
print(b.query("DISPlay:WINDow:TRACe:Y:SCALe:RLEVel?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keysight N9000B or Rohde & Schwarz FPC1000 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Keysight N9000B and the Rohde & Schwarz FPC1000 for remote control?

In TestFlow's library the N9000B has 84 SCPI commands and the FPC1000 has 40 SCPI commands. 4 command headers are common to both, 69 are only on the N9000B (mostly SENSe and CALCulate), and 25 are only on the FPC1000 (mostly FREQuency and BANDwidth).

Can I use the same SCPI code for the Keysight N9000B and the Rohde & Schwarz FPC1000?

Partly. 4 command headers are accepted by both, including :INITiate:CONTinuous, :DISPlay:WINDow:TRACe:Y:SCALe:RLEVel, and :INITiate:IMMediate. 94 are not, for example :SENSe:FREQuency:CENTer on the N9000B and FREQuency:CENTer on the FPC1000, so a script that uses those needs a separate branch for each instrument.

Which has more remote commands, the N9000B or the FPC1000?

The N9000B: 84 commands for the N9000B against 40 for the FPC1000 in TestFlow's library. Of those, 27 on the N9000B and 11 on the FPC1000 are queries that read a value or state, and the library splits them into 17 and 9 subsystems.

How do the N9000B and FPC1000 signal operation complete and report errors?

Only the N9000B library has an operation-complete command (*OPC?); the FPC1000 library has none. Only the N9000B library has an error-queue read (SYSTem:ERRor?); the FPC1000 library has none. Each command named here is listed in the tables on this page and on each instrument's command reference.

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.