In TestFlow's instrument library, the Keysight E8267D takes 130 SCPI commands, 39 of them queries, and the Rohde & Schwarz SMW200A takes 126 SCPI commands, 54 of them queries. That is 4 more on the E8267D. Counting distinct command headers (the command path without its arguments), 37 are accepted by both, 73 exist only on the E8267D, and 77 only on the SMW200A. 34% of the E8267D's command headers also exist on the SMW200A.
Both libraries have commands under SOURce, OUTPut, and SYSTem. Only the E8267D has MMEMory. Only the SMW200A has TRIGger.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight E8267D or Rohde & Schwarz SMW200A 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 E8267D | Rohde & Schwarz SMW200A | |
|---|---|---|
| Commands in TestFlow's library | 130 | 126 |
| Queries (read a value or state) | 39 | 54 |
| Settings and actions | 91 | 72 |
| Subsystems | 8 | 5 |
| Distinct command headers | 110 | 114 |
| Headers the other lacks | 73 | 77 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E8267D | SMW200A |
37 command headers are in both libraries. Here are 12, taken across subsystems.
| Command | What it does |
|---|---|
| :SOURce:FREQuency:MODE <Mode> | Set Frequency Mode. Sets the frequency entry mode (fixed CW value, analog sweep, or list). |
| :OUTPut:STATe ON | Turn On RF Output. Enables the RF output signal. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| :SOURce:FREQuency:MODE? | Read Frequency Mode. Reads the current frequency entry mode. |
| :OUTPut:STATe? | Read RF Output State. Reads whether the RF output is currently ON or OFF. |
| *RST | Reset. Resets the instrument to its default state. |
| :SOURce:FREQuency:CENTer <Freq> | Set Frequency Center. Sets the center frequency of the sweep range in Hz. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| :SOURce:FREQuency:CENTer? | Read Frequency Center. Reads the sweep center frequency in Hz. |
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| :SOURce:FREQuency:SPAN <Freq> | Set Frequency Span. Sets the span of the sweep range in Hz. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
73 command headers in the E8267D library have no match in the SMW200A library. Below are 14 of them from the 5 largest subsystems; the full list is in the Keysight E8267D command reference.
| Command | What it does |
|---|---|
| :SOURce:FREQuency:FIXed <Freq> | Set Frequency. Sets the CW/fixed RF output frequency in Hz (100 kHz to 44 GHz depending on installed options). |
| :SOURce:FREQuency:FIXed? | Read Frequency. Reads the current CW/fixed RF output frequency in Hz. |
| :SOURce:FREQuency:MANual <Freq> | Set Frequency Manual. Sets the frequency output when the sweep is in manual mode. |
| :SOURce:FREQuency:MANual? | Read Frequency Manual. Reads the manual sweep frequency in Hz. |
| Command | What it does |
|---|---|
| *SAV <Register>,<Sequence> | Save State Slot. Saves the current instrument state to an internal register. |
| *RCL <Register>,<Sequence> | Recall State Slot. Recalls the instrument state from an internal register. |
| *OPT? | Read Options. Returns the list of options installed in the instrument. |
| Command | What it does |
|---|---|
| :OUTPut:MODulation:STATe ON | Turn On Modulation. Enables the modulation of the RF output signal. |
| :OUTPut:MODulation:STATe? | Read Modulation State. Reads whether RF modulation is enabled. |
| :OUTPut:PROTection:STATe ON | Turn On Output Protection. Enables the reverse power protection on the RF output. |
| Command | What it does |
|---|---|
| :MMEMory:DELete <File> | Delete File. Deletes the named file from instrument memory. |
| :MMEMory:CATalog? | List Files. Lists the files in the current instrument directory. |
| Command | What it does |
|---|---|
| :SYSTem:ERRor:NEXt? | Read Error. Reads and removes the next entry from the error queue. |
| :SYSTem:PRESet | System Preset. Returns the instrument to its preset state. |
77 command headers in the SMW200A library have no match in the E8267D library. Below are 12 of them from the 4 largest subsystems; the full list is in the Rohde & Schwarz SMW200A command reference.
| Command | What it does |
|---|---|
| SOURce:FREQuency:CW <Freq> | Set Frequency. Sets the frequency of the RF output signal in CW/fixed mode in Hz (300 kHz to instrument max, depends on installed options). |
| SOURce:FREQuency:CW? | Read Frequency. Reads the current CW/fixed RF output frequency in Hz. |
| SOURce:FREQuency:OFFSet? | Read Frequency Offset. Reads the current RF frequency offset value in Hz. |
| SOURce:POWer:STARt? | Read Power Start. Reads the start level of the RF power sweep range. |
| Command | What it does |
|---|---|
| OUTPut:STATe:PON <Pon> | Set Power On Output State. Defines the state of the RF output signal when the instrument is switched on. |
| OUTPut:STATe:PON? | Read Power On Output State. Reads the configured RF output state used at power-on. |
| OUTPut:ALL:STATe ON | Turn On All RF Outputs. Enables all RF output signals of the instrument (all installed paths). |
| OUTPut:AMODe MANual | Set Attenuator Mode Manual. Sets the RF output attenuator to manual mode so the attenuation value can be fixed. |
| Command | What it does |
|---|---|
| SYSTem:ERRor:ALL? | Read Error Queue. Queries and clears all unread entries from the error/event queue; returns 0,'No error' if the queue is empty. |
| SYSTem:ERRor:COUNt? | Read Error Count. Reads the number of entries currently in the error/event queue. |
| Command | What it does |
|---|---|
| TRIGger:FSWeep:SOURce <Source> | Set Frequency Sweep Trigger Source. Selects the trigger source for the RF frequency sweep (free-running, single/bus, external, or external-auto). |
| TRIGger:FSWeep:SOURce? | Read Frequency Sweep Trigger Source. Reads the current RF frequency sweep trigger source. |
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 :OUTPut:STATe (turn on rf output), and the same line runs on each. For the reading, both libraries hold :OUTPut:STATe? (read rf output state), 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_E8267D_ADDRESS") # Keysight E8267D
b = rm.open_resource("PASTE_SMW200A_ADDRESS") # Rohde & Schwarz SMW200A
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On RF Output
a.write(":OUTPut:STATe ON")
b.write("OUTPut:STATe ON")
# The same reading on both: Read RF Output State
print(a.query(":OUTPut:STATe?"))
print(b.query("OUTPut:STATe?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E8267D or Rohde & Schwarz SMW200A and writes the report from the measured results.
In TestFlow's library the E8267D has 130 SCPI commands and the SMW200A has 126 SCPI commands. 37 command headers are common to both, 73 are only on the E8267D (mostly SOURce and IEEE 488.2 common (*)), and 77 are only on the SMW200A (mostly SOURce and OUTPut).
Partly. 37 command headers are accepted by both, including :SOURce:FREQuency:MODE, :OUTPut:STATe, and :SOURce:FREQuency:MODE?. 150 are not, for example :SOURce:FREQuency:FIXed on the E8267D and SOURce:FREQuency:CW on the SMW200A, so a script that uses those needs a separate branch for each instrument.
The E8267D: 130 commands for the E8267D against 126 for the SMW200A in TestFlow's library. Of those, 39 on the E8267D and 54 on the SMW200A are queries that read a value or state, and the library splits them into 8 and 5 subsystems.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?. 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.