In TestFlow's instrument library, the Keysight E36311A takes 26 SCPI commands, 9 of them queries, and the Rohde & Schwarz HMC8043 takes 70 SCPI commands, 28 of them queries. That is 44 more on the HMC8043. Counting distinct command headers (the command path without its arguments), 13 are accepted by both, 5 exist only on the E36311A, and 50 only on the HMC8043. 72% of the E36311A's command headers also exist on the HMC8043.
Both libraries have commands under OUTPut, MEASure, and SYSTem. Only the E36311A has SOURce. Only the HMC8043 has VOLTage, FUSE, CURRent, POWer, INSTrument, and DISPlay and 1 more.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the E36312A the same command set as the E36311A, so the E36311A column applies to it too.
Describe the test; TestFlow's agent uses these command sets to drive your Keysight E36311A or Rohde & Schwarz HMC8043 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 E36311A | Rohde & Schwarz HMC8043 | |
|---|---|---|
| Commands in TestFlow's library | 26 | 70 |
| Queries (read a value or state) | 9 | 28 |
| Settings and actions | 17 | 42 |
| Subsystems | 8 | 11 |
| Distinct command headers | 18 | 63 |
| Headers the other lacks | 5 | 50 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E36311A, E36312A | HMC8043 |
13 command headers are in both libraries. Here are 12, taken across subsystems. Where the HMC8043 library writes the command differently, its form is shown under the E36311A's.
| Command | What it does |
|---|---|
| OUTPut ON,(@1)HMC8043: OUTPut ON | Turn On CH1. Enables the output of channel 1. |
| MEASure:VOLTage? (@<Channel>)HMC8043: MEASure:VOLTage? | Measure Voltage. Measures the output voltage of the selected channel in volts. |
| SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
| *SAV <Slot> | Save State. Saves the current instrument state to the specified storage slot. |
| OUTPut? (@<Channel>)HMC8043: OUTPut? | Read Output State. Reads whether the selected channel output is ON or OFF. |
| MEASure:CURRent? (@<Channel>)HMC8043: MEASure:CURRent? | Measure Current. Measures the output current of the selected channel in amps. |
| *RCL <Slot> | Recall State. Recalls an instrument state from the specified storage slot. |
| *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. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
5 command headers in the E36311A library have no match in the HMC8043 library. Below are 4 of them from the 1 largest subsystem; the full list is in the Keysight E36311A command reference.
| Command | What it does |
|---|---|
| SOURce:VOLTage <Volt>,(@<Channel>) | Set Voltage. Sets the output voltage of the selected channel in volts. |
| SOURce:VOLTage? (@<Channel>) | Read Voltage Setting. Reads the set output voltage of the selected channel. |
| SOURce:CURRent <Amp>,(@<Channel>) | Set Current. Sets the output current limit of the selected channel in amps. |
| SOURce:CURRent? (@<Channel>) | Read Current Setting. Reads the set output current limit of the selected channel. |
50 command headers in the HMC8043 library have no match in the E36311A library. Below are 24 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz HMC8043 command reference.
| Command | What it does |
|---|---|
| VOLTage <Voltage> | Set Voltage. Voltage setpoint of the selected channel (manual p.26). |
| VOLTage? | Read Voltage Setpoint. Return the selected channel's voltage setpoint in V (manual p.26). |
| VOLTage:STEP <Step> | Set Voltage Step. Step size of Voltage_Up and Voltage_Down (manual p.27). |
| VOLTage:PROTection <State> | Set OVP. Turn the selected channel's over-voltage protection on or off (manual p.34). |
| Command | What it does |
|---|---|
| FUSE <State> | Set Fuse. Turn the selected channel's electronic fuse on or off (manual p.32). |
| FUSE? | Read Fuse. Return 1 when the selected channel's fuse is on, else 0 (manual p.32). |
| FUSE:DELay <Delay> | Set Fuse Delay. Delay before the selected channel's fuse trips (manual p.32). |
| FUSE:DELay? | Read Fuse Delay. Return the selected channel's fuse delay in s (manual p.33). |
| Command | What it does |
|---|---|
| POWer:PROTection <State> | Set OPP. Turn the selected channel's over-power protection on or off (manual p.36). |
| POWer:PROTection? | Read OPP. Return 1 when the selected channel's OPP is on, else 0 (manual p.37). |
| POWer:PROTection:LEVel <Power> | Set OPP Level. Over-power protection level of the selected channel (manual p.37). |
| POWer:PROTection:LEVel? | Read OPP Level. Return the selected channel's OPP level in W (manual p.37). |
| Command | What it does |
|---|---|
| SYSTem:VERSion? | Read Version. Return the firmware version and the SCPI version (manual p.23). |
| SYSTem:REMote | Remote. Switch to remote control (manual p.23). |
| SYSTem:LOCal | Local. Return to front-panel control; also the only way to unlock after Remote_Lock (manual p.23). |
| SYSTem:RWLock | Remote Lock. Remote control with the front panel locked until Local is sent (manual p.23). |
| Command | What it does |
|---|---|
| CURRent <Current> | Set Current. Current limit of the selected channel; 0.1 mA steps below 1 A, 1 mA above (manual p.28). |
| CURRent? | Read Current Setpoint. Return the selected channel's current setpoint in A (manual p.28). |
| CURRent:STEP <Step> | Set Current Step. Step size of Current_Up and Current_Down (manual p.28). |
| CURRent:STEP? | Read Current Step. Return the current step size in A (manual p.29). |
| Command | What it does |
|---|---|
| MEASure:POWer? | Measure Power. Return the power measured at the selected channel's output in W (manual p.38). |
| MEASure:ENERgy:STATe <State> | Set Energy Meter. Turn the selected channel's energy meter on or off (manual p.38). |
| MEASure:ENERgy? | Read Energy. Return the energy the selected channel has delivered since the meter started, in Ws; the meter must be on (manual p.38). |
| MEASure:ENERgy:RESet | Reset Energy Meter. Set the selected channel's energy meter back to zero (manual p.39). |
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 (turn on ch1); the HMC8043 library writes it as OUTPut ON. For the reading, both libraries hold MEASure:VOLTage? (measure voltage); the HMC8043 library writes it as MEASure:VOLTage?. 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_E36311A_ADDRESS") # Keysight E36311A
b = rm.open_resource("PASTE_HMC8043_ADDRESS") # Rohde & Schwarz HMC8043
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On CH1
a.write("OUTPut ON,(@1)")
b.write("OUTPut ON")
# The same reading on both: Measure Voltage
print(a.query("MEASure:VOLTage? (@1)"))
print(b.query("MEASure:VOLTage?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E36311A or Rohde & Schwarz HMC8043 and writes the report from the measured results.
In TestFlow's library the E36311A has 26 SCPI commands and the HMC8043 has 70 SCPI commands. 13 command headers are common to both, 5 are only on the E36311A (mostly SOURce), and 50 are only on the HMC8043 (mostly VOLTage and FUSE).
Partly. 13 command headers are accepted by both, including OUTPut, MEASure:VOLTage?, and SYSTem:ERRor?. 55 are not, for example SOURce:VOLTage on the E36311A and VOLTage on the HMC8043, so a script that uses those needs a separate branch for each instrument.
The HMC8043: 26 commands for the E36311A against 70 for the HMC8043 in TestFlow's library. Of those, 9 on the E36311A and 28 on the HMC8043 are queries that read a value or state, and the library splits them into 8 and 11 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.