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.
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.
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 N9000B | Rohde & Schwarz FPC1000 | |
|---|---|---|
| Commands in TestFlow's library | 84 | 40 |
| Queries (read a value or state) | 27 | 11 |
| Settings and actions | 57 | 29 |
| Subsystems | 17 | 9 |
| Distinct command headers | 73 | 29 |
| Headers the other lacks | 69 | 25 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | N9000B | FPC1000 |
4 command headers are in both libraries. Where the FPC1000 library writes the command differently, its form is shown under the N9000B's.
| Command | What it does |
|---|---|
| :INITiate:CONTinuous ON | Continuous 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:IMMediate | Initiate Sweep. Triggers a new single sweep/measurement. |
| :DISPlay:WINDow:TRACe:Y:SCALe:RLEVel? | Read Ref Level. Returns the current reference level. |
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.
| Command | What 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. |
| Command | What it does |
|---|---|
| :CALCulate:MARKer1:STATe ON | Marker 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. |
| Command | What it does |
|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear 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. |
| Command | What it does |
|---|---|
| :CONFigure:SANalyzer | Config Swept SA. Selects and configures the Swept SA measurement with its default settings. |
| :CONFigure:CHPower | Config Channel Power. Selects and configures the Channel Power measurement. |
| :CONFigure:OBWidth | Config OBW. Selects and configures the Occupied Bandwidth measurement. |
| Command | What 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? TRACE1 | Read Trace Data. Returns the amplitude data for trace 1 as a comma-separated list. |
| Command | What 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. |
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.
| Command | What 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. |
| Command | What 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 ON | Set RBW Auto. Enables automatic resolution bandwidth selection. |
| BANDwidth:VIDeo <Hz> | Set VBW. Sets the video bandwidth in Hz. |
| Command | What 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 ON | Set Input Attenuation Auto. Enables automatic input attenuation control. |
| INPut:GAIN:STATe ON | Preamp On. Enables the input preamplifier. |
| Command | What 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 ON | Set Sweep Time Auto. Enables automatic sweep time calculation. |
| SWEep:COUNt <N> | Set Average Count. Sets the number of sweep averages. |
| Command | What it does |
|---|---|
| DISPlay:WINDow:TRACe:MODE AVERage | Average On. Enables sweep averaging. |
| DISPlay:WINDow:TRACe:MODE? | Read Average State. Queries whether sweep averaging is enabled. |
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()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.
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).
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.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.