In TestFlow's instrument library, the Keysight E5080A takes 60 SCPI commands, 14 of them queries, and the Rohde & Schwarz ZNL14 takes 26 SCPI commands, 3 of them queries. That is 34 more on the E5080A. Counting distinct command headers (the command path without its arguments), 10 are accepted by both, 41 exist only on the E5080A, and 11 only on the ZNL14. 20% of the E5080A's command headers also exist on the ZNL14.
Both libraries have commands under SENSe, CALCulate, INITiate, SOURce, SYSTem, and TRIGger. Only the E5080A has DISPlay, MMEMory, and OUTPut. Only the ZNL14 has SPEctrum, SWEep, and FORM.
Only the E5080A library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5080A library has an error-queue read (SYSTem:ERRor?); the ZNL14 library has none.
TestFlow's library gives the E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, and P9375A the same command set as the E5080A, so the E5080A column applies to them too. TestFlow's library gives the ZNL20, ZNL3, ZNL4, and ZNL6 the same command set as the ZNL14, so the ZNL14 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5080A or Rohde & Schwarz ZNL14 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 E5080A | Rohde & Schwarz ZNL14 | |
|---|---|---|
| Commands in TestFlow's library | 60 | 26 |
| Queries (read a value or state) | 14 | 3 |
| Settings and actions | 46 | 23 |
| Subsystems | 13 | 13 |
| Distinct command headers | 51 | 21 |
| Headers the other lacks | 41 | 11 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | E5080A, E5080B, M9370A, M9371A, M9372A, M9374A, M9375A, N5221B, N5222B, N5224B, N5225B, N5227B, N5231B, N5232B, N5234B, N5235B, N5239B, N5241B, N5242B, N5244B, N5245B, N5247B, N5249B, N5264B, N5290A, N5291A, P5001A, P5002A, P5004A, P5007A, P5023A, P5024A, P5028A, P9370A, P9371A, P9372A, P9373A, P9374A, P9375A | ZNL14, ZNL20, ZNL3, ZNL4, ZNL6 |
10 command headers are in both libraries. Where the ZNL14 library writes the command differently, its form is shown under the E5080A's.
| Command | What it does |
|---|---|
| SENSe:FREQuency:STARt <Frequency>ZNL14: SENS:FREQ:STARt <Start Freq> | Set Start Freq. Sets the sweep start frequency in Hz. |
| CALCulate:FORMat <Format>ZNL14: CALC:FORMat <Format> | Set Format. Sets the display/data format for the selected trace. |
| SOURce:POWer <Power>ZNL14: SOUR:POWer <Power level> | Set Power Level. Sets the source output power level in dBm. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| SENSe:FREQuency:STOP <Frequency>ZNL14: SENS:FREQ:STOP <Stop freq> | Set Stop Freq. Sets the sweep stop frequency in Hz. |
| *RST | Reset. Resets the instrument to its default state. |
| SENSe:FREQuency:CENTer <Frequency>ZNL14: SENS:FREQ:CENT <Center freq> | Set Center Freq. Sets the sweep center frequency in Hz. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| SENSe:AVERage:STATe ONZNL14: SENS:AVER:STATe <ON|OFF> | Average On. Enables trace averaging. |
| SENSe:AVERage:COUNt <Count>ZNL14: SENS:AVER:COUN <Count> | Set Average Count. Sets the number of sweeps to average. |
41 command headers in the E5080A library have no match in the ZNL14 library. Below are 19 of them from the 6 largest subsystems; the full list is in the Keysight E5080A command reference.
| Command | What it does |
|---|---|
| CALCulate:PARameter:DEFine:EXTended '<Name>',<Parameter> | Define Measurement. Creates a new measurement trace with the given name and S-parameter. |
| CALCulate:PARameter:SELect '<Name>' | Select Measurement. Selects an existing measurement trace by name for subsequent commands. |
| CALCulate:PARameter:MNUMber <Number> | Select By Number. Selects the active measurement by its trace number. |
| CALCulate:PARameter:DELete '<Name>' | Delete Measurement. Deletes the named measurement trace. |
| Command | What it does |
|---|---|
| SENSe:FREQuency:SPAN <Frequency> | Set Span Freq. Sets the sweep frequency span in Hz. |
| SENSe:FREQuency:CW <Frequency> | Set CW Freq. Sets the CW (fixed) frequency in Hz, used in CW/power sweep modes. |
| SENSe:FREQuency:STARt? | Read Start Freq. Returns the current start frequency in Hz. |
| SENSe:FREQuency:STOP? | Read Stop Freq. Returns the current stop frequency in Hz. |
| Command | What it does |
|---|---|
| DISPlay:WINDow:TRACe:Y:SCALe:AUTO | Autoscale. Autoscales the active trace to fit the display. |
| DISPlay:WINDow:TRACe:Y:SCALe:PDIVision <Per_Div> | Set Y Scale. Sets the vertical scale per division for the active trace. |
| DISPlay:WINDow:TRACe:Y:SCALe:RLEVel <Level> | Set Ref Level. Sets the reference level for the active trace. |
| Command | What it does |
|---|---|
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
| Command | What it does |
|---|---|
| MMEMory:STORe '<Filename>' | Save State. Saves the instrument state/data to the named file. |
| MMEMory:LOAD '<Filename>' | Recall State. Recalls an instrument state from the named file. |
| MMEMory:STORe:SSCReen '<Filename>' | Save Screenshot. Saves a screenshot image to the named file. |
| Command | What it does |
|---|---|
| INITiate:CONTinuous ON | Continuous On. Enables continuous (free-run) triggering. |
| INITiate:IMMediate | Trigger Single. Triggers a single sweep when not in continuous mode. |
11 command headers in the ZNL14 library have no match in the E5080A library. Below are 10 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz ZNL14 command reference.
| Command | What it does |
|---|---|
| SPEctrum:FREQ:CENTer <Hz> | SA mode Center frequency. Sets the center frequency in spectrum analyzer mode. |
| SPEctrum:SPAN <Hz> | Span bandwidth. Sets the frequency span in spectrum analyzer mode. |
| SPEctrum:DETector <POS|NEG|AVERage> | Detector type. Sets the detector type for spectrum measurements. |
| SPEctrum:REFLevel <dBm> | SA display Reference. Sets the reference level for the spectrum display. |
| Command | What it does |
|---|---|
| CALCulate:DATA? <Format> | Retrieve trace data points. Queries the current trace data points. |
| CALCulate:PARameter:MEASure '<Trace>', '<Parameter>' | Display parameter. Selects the S-parameter to display. |
| Command | What it does |
|---|---|
| FORM:DATA REAL,<32|64> | Data output format. Sets the numeric data output format. |
| Command | What it does |
|---|---|
| INITiate:CONTinuous:ALL OFF | Single-shot sweep. Disables continuous mode to perform a single sweep. |
| Command | What it does |
|---|---|
| SWEep:TIME <seconds> | Set sweep time. Sets the sweep time duration. |
| Command | What it does |
|---|---|
| SYSTem:LANGuage '<Language>' | Language. Sets the instrument interface language. |
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 SENSe:AVERage:STATe (average on); the ZNL14 library writes it as SENS:AVER:STATe ON. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: SENSe:FREQuency:STARt? on the E5080A and CALCulate:DATA? FDATa on the ZNL14. 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_E5080A_ADDRESS") # Keysight E5080A
b = rm.open_resource("PASTE_ZNL14_ADDRESS") # Rohde & Schwarz ZNL14
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Average On
a.write("SENSe:AVERage:STATe ON")
b.write("SENS:AVER:STATe ON")
# No shared reading with an example on both, so each uses its own command
print(a.query("SENSe:FREQuency:STARt?")) # Read Start Freq
print(b.query("CALCulate:DATA? FDATa")) # TRACE data
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E5080A or Rohde & Schwarz ZNL14 and writes the report from the measured results.
In TestFlow's library the E5080A has 60 SCPI commands and the ZNL14 has 26 SCPI commands. 10 command headers are common to both, 41 are only on the E5080A (mostly CALCulate and SENSe), and 11 are only on the ZNL14 (mostly SPEctrum and CALCulate).
Partly. 10 command headers are accepted by both, including SENSe:FREQuency:STARt, CALCulate:FORMat, and SOURce:POWer. 52 are not, for example CALCulate:PARameter:DEFine:EXTended on the E5080A and SPEctrum:FREQ:CENTer on the ZNL14, so a script that uses those needs a separate branch for each instrument.
The E5080A: 60 commands for the E5080A against 26 for the ZNL14 in TestFlow's library. Of those, 14 on the E5080A and 3 on the ZNL14 are queries that read a value or state, and the library splits them into 13 and 13 subsystems.
Only the E5080A library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5080A library has an error-queue read (SYSTem:ERRor?); the ZNL14 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.