In TestFlow's instrument library, the Keithley 3390 takes 88 SCPI commands, 10 of them queries, and the Keysight 33511B takes 117 SCPI commands, 17 of them queries. That is 29 more on the 33511B. Counting distinct command headers (the command path without its arguments), 18 are accepted by both, 56 exist only on the 3390, and 83 only on the 33511B. 24% of the 3390's command headers also exist on the 33511B.
Both libraries have commands under OUTPut, SYSTem, and TRIGger. Only the 3390 has VOLTage, FREQuency, APPLy, BURSt, FUNCtion, and AM and 6 more. Only the 33511B has SOURce, DISPlay, ROSCillator, and MMEMory.
Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the 33519B, 33521B, 33611A, and 33621A the same command set as the 33511B, so the 33511B column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Keithley 3390 or Keysight 33511B 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.
| Keithley 3390 | Keysight 33511B | |
|---|---|---|
| Commands in TestFlow's library | 88 | 117 |
| Queries (read a value or state) | 10 | 17 |
| Settings and actions | 78 | 100 |
| Subsystems | 19 | 11 |
| Distinct command headers | 74 | 101 |
| Headers the other lacks | 56 | 83 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 3390 | 33511B, 33519B, 33521B, 33611A, 33621A |
18 command headers are in both libraries. Here are 12, taken across subsystems. Where the 33511B library writes the command differently, its form is shown under the 3390's.
| Command | What it does |
|---|---|
| OUTPut:LOAD <Ohm>33511B: OUTPut1:LOAD <Ohm> | Set Output Load. Sets the output load in ohms (1 to 10k); use INF for high-Z. |
| SYSTem:BEEPer:STATe ON | Enable Beeper. Enables the beeper. |
| TRIGger:SOURce <Src> | Set Trigger Source. Sets the trigger source. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| OUTPut:POLarity NORMal33511B: OUTPut1:POLarity NORMal | Set Output Polarity Normal. Sets output polarity to normal. |
| SYSTem:BEEPer | Beep Now. Sounds the beeper once. |
| TRIGger:SLOPe <Slope> | Set Trigger Slope. Sets the external trigger slope. |
| *RST | Reset. Resets the instrument to its default state. |
| SYSTem:ERRor? | Read Error. Reads and clears the next error-queue entry. |
| TRIGger | Trigger Now. Issues an immediate trigger. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| SYSTem:VERSion? | Read SCPI Version. Returns the SCPI version. |
56 command headers in the 3390 library have no match in the 33511B library. Below are 24 of them from the 6 largest subsystems; the full list is in the Keithley 3390 command reference.
| Command | What it does |
|---|---|
| VOLTage <Amp> | Set Amplitude. Sets the output amplitude (Vpp). |
| VOLTage? | Read Amplitude. Reads the output amplitude. |
| VOLTage:OFFSet <Volt> | Set Voltage Offset. Sets the DC offset voltage. |
| VOLTage:OFFSet? | Read Voltage Offset. Reads the DC offset voltage. |
| Command | What it does |
|---|---|
| APPLy:SINusoid <Freq>,<Amp>,<Offset> | Apply Sine. Sets sine with the given frequency, amplitude and offset. |
| APPLy:SQUare <Freq>,<Amp>,<Offset> | Apply Square. Sets square with the given frequency, amplitude and offset. |
| APPLy:RAMP <Freq>,<Amp>,<Offset> | Apply Ramp. Sets ramp with the given frequency, amplitude and offset. |
| APPLy:PULSe <Freq>,<Amp>,<Offset> | Apply Pulse. Sets pulse with the given frequency, amplitude and offset. |
| Command | What it does |
|---|---|
| FREQuency <Freq> | Set Frequency. Sets the output frequency in Hz. |
| FREQuency? | Read Frequency. Reads the output frequency. |
| FREQuency:STARt <Freq> | Set Sweep Start Freq. Sets the sweep start frequency. |
| FREQuency:STOP <Freq> | Set Sweep Stop Freq. Sets the sweep stop frequency. |
| Command | What it does |
|---|---|
| BURSt:STATe ON | Enable Burst. Enables burst mode. |
| BURSt:MODE <Mode> | Set Burst Mode. Sets the burst mode. |
| BURSt:NCYCles <N> | Set Burst Cycles. Sets the number of cycles per burst. |
| BURSt:INTernal:PERiod <Sec> | Set Burst Period. Sets the internal burst period. |
| Command | What it does |
|---|---|
| FUNCtion <Shape> | Set Function. Sets the output waveform shape. |
| FUNCtion? | Read Function. Reads the output waveform shape. |
| FUNCtion:RAMP:SYMMetry <Pct> | Set Ramp Symmetry. Sets the ramp symmetry percentage. |
| FUNCtion:SQUare:DCYCle <Pct> | Set Square Duty Cycle. Sets the square-wave duty cycle percentage. |
| Command | What it does |
|---|---|
| AM:STATe ON | Enable AM. Enables AM modulation. |
| AM:DEPTh <Pct> | Set AM Deviation. Sets the AM depth percentage. |
| AM:SOURce <Src> | Set AM Source. Sets the AM modulation source. |
| AM:INTernal:FREQuency <Freq> | Set AM Int Freq. Sets the internal AM modulating frequency. |
83 command headers in the 33511B library have no match in the 3390 library. Below are 13 of them from the 6 largest subsystems; the full list is in the Keysight 33511B command reference.
| Command | What it does |
|---|---|
| SOURce1:FUNCtion <Shape> | Set Function CH1. Sets the output waveform shape for channel 1. |
| SOURce1:FUNCtion? | Read Function CH1. Reads the output waveform shape for channel 1. |
| SOURce1:FREQuency <Freq> | Set Frequency CH1. Sets the output frequency in Hz for channel 1. |
| SOURce1:FREQuency? | Read Frequency CH1. Reads the output frequency for channel 1. |
| Command | What it does |
|---|---|
| OUTPut1:STATe ON | Turn On Output CH1. Enables channel 1 output. |
| OUTPut1:STATe? | Read Output State CH1. Reads whether channel 1 output is on. |
| OUTPut1:LOAD? | Read Output Load CH1. Reads the output load setting for channel 1. |
| OUTPut1:POLarity? | Read Output Polarity CH1. Reads channel 1 output polarity. |
| Command | What it does |
|---|---|
| MMEMory:STORe:STATe <File> | Save State. Stores the instrument state to a file. |
| MMEMory:LOAD:STATe <File> | Load State. Loads an instrument state file. |
| Command | What it does |
|---|---|
| DISPlay ON | Enable Display. Turns the front-panel display on. |
| Command | What it does |
|---|---|
| *OPT? | Read Options. Queries the installed options. |
| Command | What it does |
|---|---|
| ROSCillator:SOURce INTernal | Set Clock Internal. Uses the internal 10 MHz reference clock. |
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:POLarity (set output polarity normal); the 33511B library writes it as OUTPut1:POLarity NORMal. For the reading, both libraries hold SYSTem:ERRor? (read error), 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_3390_ADDRESS") # Keithley 3390
b = rm.open_resource("PASTE_33511B_ADDRESS") # Keysight 33511B
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Set Output Polarity Normal
a.write("OUTPut:POLarity NORMal")
b.write("OUTPut1:POLarity NORMal")
# The same reading on both: Read Error
print(a.query("SYSTem:ERRor?"))
print(b.query("SYSTem:ERRor?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keithley 3390 or Keysight 33511B and writes the report from the measured results.
In TestFlow's library the 3390 has 88 SCPI commands and the 33511B has 117 SCPI commands. 18 command headers are common to both, 56 are only on the 3390 (mostly VOLTage and APPLy), and 83 are only on the 33511B (mostly SOURce and OUTPut).
Partly. 18 command headers are accepted by both, including OUTPut:LOAD, SYSTem:BEEPer:STATe, and TRIGger:SOURce. 139 are not, for example VOLTage on the 3390 and SOURce1:FUNCtion on the 33511B, so a script that uses those needs a separate branch for each instrument.
The 33511B: 88 commands for the 3390 against 117 for the 33511B in TestFlow's library. Of those, 10 on the 3390 and 17 on the 33511B are queries that read a value or state, and the library splits them into 19 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.