In TestFlow's instrument library, the Keysight E36233A takes 29 SCPI commands, 5 of them queries, and the Keysight E36311A takes 26 SCPI commands, 9 of them queries. That is 3 more on the E36233A. Counting distinct command headers (the command path without its arguments), 2 are accepted by both, 21 exist only on the E36233A, and 16 only on the E36311A. 9% of the E36233A's command headers also exist on the E36311A.
Both libraries have commands under OUTPut, SOURce, MEASure, and SYSTem. Only the E36233A has DISPlay, CURR, and SENSe.
Only the E36311A library has an operation-complete command (*OPC?); the E36233A library has none. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the E36234A the same command set as the E36233A, so the E36233A column applies to it too. 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 E36233A or Keysight E36311A 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 E36233A | Keysight E36311A | |
|---|---|---|
| Commands in TestFlow's library | 29 | 26 |
| Queries (read a value or state) | 5 | 9 |
| Settings and actions | 24 | 17 |
| Subsystems | 10 | 8 |
| Distinct command headers | 23 | 18 |
| Headers the other lacks | 21 | 16 |
| Command language | SCPI | SCPI |
| Operation complete | Not in library | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | E36233A, E36234A | E36311A, E36312A |
2 command headers are in both libraries. Where the E36311A library writes the command differently, its form is shown under the E36233A's.
| Command | What it does |
|---|---|
| MEASure:CURRent? (@<Channel>)E36311A: MEASure:CURRent? (@<Channel>) | Measure current. Measures the power supply current |
| SYST:ERR?E36311A: SYSTem:ERRor? | Check errors. Checks if there is an error |
21 command headers in the E36233A library have no match in the E36311A library. Below are 17 of them from the 6 largest subsystems; the full list is in the Keysight E36233A command reference.
| Command | What it does |
|---|---|
| OUTPut:STATe ON, (@<Channel>) | Turn On. Turning on the power supply |
| OUTPut:STATe? (@<Channel>) | Status. Reads if the power supply is ON or OFF |
| OUTPut:STATe:DELay:FALL <delay> , (@<Channel>) | State fall delay. Sets the falling delay |
| OUTPut:STATe:DELay:RISE <delay> , (@<Channel>) | State rise delay. Sets the rising delay |
| Command | What it does |
|---|---|
| SOURce:CURRent:LEVel:IMMediate:AMPLitude <current>, (@<Channel>) | Set Current. Sets the power supply current limit |
| SOURce:VOLTage:LEVel:IMMediate:AMPLitude <voltage> , (@<Channel>) | Set voltage. Sets the power supply voltage |
| SOURce:CURRent:TRIGgered <current> , (@<Channel>) | Current trigger. Sets the current trigger |
| SOURce:CURRent:LEVel:IMMediate:STEP:INCRement <current> , (@<Channel>) | Current step. Sets the current step value |
| Command | What it does |
|---|---|
| CURR:PROT:CLE (@<Channel>) | Clear protection. Clears the current protection value |
| CURR:PROT:STAT ON, (@<Channel>) | Enable protection. Enables the current protection |
| CURR:PROT:TRIP? | Check protection. Checks if protection tripped or not |
| Command | What it does |
|---|---|
| DISPlay:TEXT:DATA "<Message>" | Display text. Display text on power supply screen |
| DISPlay:WINDow:TEXT:DATA "" | Display clear. Clears display text |
| DISPlay:WINDow:STATe ON | Display ON. Enable text display on power supply screen |
| Command | What it does |
|---|---|
| SENSe:DLOG:FUNCtion:CURRent <ON | OFF> , (@<Channel>) | Sense current. Sets the sense function to sens current |
| SENSe:DLOG:FUNCtion:VOLTage <ON | OFF> , (@<Channel>) | Sense volt. Sets the sense function to sens voltage |
| Command | What it does |
|---|---|
| MEASure:VOLTage:DC? (@<Channel>) | Measure voltage. Measures the power supply voltage |
16 command headers in the E36311A library have no match in the E36233A library. Below are 11 of them from the 4 largest subsystems; the full list is in the Keysight E36311A command reference.
| Command | What it does |
|---|---|
| *SAV <Slot> | Save State. Saves the current instrument state to the specified storage slot. |
| *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. |
| 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. |
| Command | What it does |
|---|---|
| OUTPut ON,(@1) | Turn On CH1. Enables the output of channel 1. |
| OUTPut? (@<Channel>) | Read Output State. Reads whether the selected channel output is ON or OFF. |
| Command | What it does |
|---|---|
| MEASure:VOLTage? (@<Channel>) | Measure Voltage. Measures the output voltage of the selected channel in volts. |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, the two libraries have no common command with a worked example on both, so each instrument uses its own: OUTPut:STATe ON, (@1) on the E36233A and OUTPut ON,(@1) on the E36311A. For the reading, both libraries hold MEASure:CURRent? (measure current); the E36311A library writes it as MEASure:CURRent? (@1). 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_E36233A_ADDRESS") # Keysight E36233A
b = rm.open_resource("PASTE_E36311A_ADDRESS") # Keysight E36311A
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# No shared setting with an example on both, so each uses its own command
a.write("OUTPut:STATe ON, (@1)") # Turn On
b.write("OUTPut ON,(@1)") # Turn On CH1
# The same reading on both: Measure current
print(a.query("MEASure:CURRent? (@1)"))
print(b.query("MEASure:CURRent? (@1)"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keysight E36233A or Keysight E36311A and writes the report from the measured results.
In TestFlow's library the E36233A has 29 SCPI commands and the E36311A has 26 SCPI commands. 2 command headers are common to both, 21 are only on the E36233A (mostly OUTPut and SOURce), and 16 are only on the E36311A (mostly IEEE 488.2 common (*) and SOURce).
Partly. 2 command headers are accepted by both, including MEASure:CURRent? and SYST:ERR?. 37 are not, for example OUTPut:STATe on the E36233A and *SAV on the E36311A, so a script that uses those needs a separate branch for each instrument.
The E36233A: 29 commands for the E36233A against 26 for the E36311A in TestFlow's library. Of those, 5 on the E36233A and 9 on the E36311A are queries that read a value or state, and the library splits them into 10 and 8 subsystems.
Only the E36311A library has an operation-complete command (*OPC?); the E36233A library has none. 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.