In TestFlow's instrument library, the Keysight E5061B takes 58 SCPI commands, 14 of them queries, and the Rohde & Schwarz ZNL14 takes 26 SCPI commands, 3 of them queries. That is 32 more on the E5061B. Counting distinct command headers (the command path without its arguments), 10 are accepted by both, 39 exist only on the E5061B, and 11 only on the ZNL14. 20% of the E5061B's command headers also exist on the ZNL14.
Both libraries have commands under SENSe, CALCulate, INITiate, SOURce, SYSTem, and TRIGger. Only the E5061B has DISPlay, MMEMory, and OUTPut. Only the ZNL14 has SPEctrum, SWEep, and FORM.
Only the E5061B library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5061B library has an error-queue read (SYSTem:ERRor?); the ZNL14 library has none.
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 E5061B 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 E5061B | Rohde & Schwarz ZNL14 | |
|---|---|---|
| Commands in TestFlow's library | 58 | 26 |
| Queries (read a value or state) | 14 | 3 |
| Settings and actions | 44 | 23 |
| Subsystems | 13 | 13 |
| Distinct command headers | 49 | 21 |
| Headers the other lacks | 39 | 11 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | Not in library |
| Models on this command set | E5061B | 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 E5061B'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. |
39 command headers in the E5061B library have no match in the ZNL14 library. Below are 20 of them from the 6 largest subsystems; the full list is in the Keysight E5061B command reference.
| 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 |
|---|---|
| CALCulate:PARameter<Trace>:DEFine <Parameter> | Define Measurement. Creates a new measurement trace with the given name and S-parameter. |
| CALCulate:PARameter<Number>:SELect | Select By Number. Selects the active measurement by its trace number. |
| CALCulate:FORMat? | Read Format. Returns the display/data format of the selected trace. |
| CALCulate:DATA:FDATa? | Read Formatted Data. Returns the formatted trace data array for the selected measurement. |
| 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. |
| *TRG | Trigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state. |
| 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 |
|---|---|
| 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:IMAGe '<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 E5061B 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 E5061B 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_E5061B_ADDRESS") # Keysight E5061B
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 E5061B or Rohde & Schwarz ZNL14 and writes the report from the measured results.
In TestFlow's library the E5061B has 58 SCPI commands and the ZNL14 has 26 SCPI commands. 10 command headers are common to both, 39 are only on the E5061B (mostly SENSe and CALCulate), 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. 50 are not, for example SENSe:FREQuency:SPAN on the E5061B and SPEctrum:FREQ:CENTer on the ZNL14, so a script that uses those needs a separate branch for each instrument.
The E5061B: 58 commands for the E5061B against 26 for the ZNL14 in TestFlow's library. Of those, 14 on the E5061B 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 E5061B library has an operation-complete command (*OPC?); the ZNL14 library has none. Only the E5061B 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.