In TestFlow's instrument library, the Keithley 2450 takes 49 SCPI commands, 12 of them queries, and the Rohde & Schwarz NGU201 takes 58 SCPI commands, 17 of them queries. That is 9 more on the NGU201. Counting distinct command headers (the command path without its arguments), 14 are accepted by both, 22 exist only on the 2450, and 40 only on the NGU201. 39% of the 2450's command headers also exist on the NGU201.
Both libraries have commands under SENSe, SOURce, OUTPut, MEASure, and SYSTem. Only the 2450 has READ, FETCh, INITiate, and ABORt. Only the NGU201 has APPLy and TRIGger.
Only the 2450 library has an operation-complete command (*OPC?); the NGU201 library has none. Both libraries read errors with SYSTem:ERRor?.
TestFlow's library gives the 2460 and 2470 the same command set as the 2450, so the 2450 column applies to them too.
Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2450 or Rohde & Schwarz NGU201 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 2450 | Rohde & Schwarz NGU201 | |
|---|---|---|
| Commands in TestFlow's library | 49 | 58 |
| Queries (read a value or state) | 12 | 17 |
| Settings and actions | 37 | 41 |
| Subsystems | 13 | 11 |
| Distinct command headers | 36 | 54 |
| Headers the other lacks | 22 | 40 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | 2450, 2460, 2470 | NGU201 |
14 command headers are in both libraries. Here are 12, taken across subsystems. Where the NGU201 library writes the command differently, its form is shown under the 2450's.
| Command | What it does |
|---|---|
| :SENSe:VOLTage:RANGe <Range> | Set Voltage Sense Range. Sets the voltage measurement range in volts. |
| :SOURce:VOLTage <Voltage> | Set Voltage Source. Sets the output voltage level in volts when in voltage source mode. |
| :MEASure:VOLTage? | Measure Voltage. Triggers and returns the measured voltage in volts. |
| :SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| :SENSe:CURRent:RANGe <Range> | Set Current Sense Range. Sets the current measurement range in amps. |
| :SOURce:CURRent <Amp>NGU201: :SOURce:CURRent <Current> | Set Current Source. Sets the output current level in amps when in current source mode. |
| :MEASure:CURRent? | Measure Current. Triggers and returns the measured current in amps. |
| *RST | Reset. Resets the instrument to its default state. |
| :SENSe:VOLTage:RANGe:AUTO ONNGU201: :SENSe:VOLTage:RANGe:AUTO <State> | Voltage Sense Autorange On. Enables voltage measurement autorange. |
| *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. |
22 command headers in the 2450 library have no match in the NGU201 library. Below are 14 of them from the 6 largest subsystems; the full list is in the Keithley 2450 command reference.
| Command | What it does |
|---|---|
| :SOURce:FUNCtion <Function> | Set Source Function. Sets the source function to voltage or current mode. |
| :SOURce:FUNCtion? | Read Source Function. Reads the present source function. |
| :SOURce:VOLTage:RANGe <Range> | Set Source Voltage Range. Sets the source voltage range in volts. |
| :SOURce:CURRent:RANGe <Range> | Set Source Current Range. Sets the source current range in amps. |
| Command | What it does |
|---|---|
| :SENSe:FUNCtion "VOLTage" | Set Sense Function Voltage. Selects voltage as the measurement function. |
| :SENSe:CURRent:NPLCycles <Cycles> | Set NPLC. Sets the integration time in power line cycles for current measurement. |
| :SENSe:CURRent:RSENse ON | Set Four Wire On. Enables 4-wire (remote sense) measurement. |
| :SENSe:COUNt <Count> | Set Measure Count. Sets the number of measurements made per trigger. |
| Command | What it does |
|---|---|
| :OUTPut ON | Turn On. Enables the source output. |
| :OUTPut? | Read Output State. Reads whether the output is ON or OFF. |
| :OUTPut:SMODe HIMPedance | Set Output Off Mode Himp. Sets the output-off state to high impedance. |
| Command | What it does |
|---|---|
| :ABORt | Abort. Aborts the current operation and returns to idle. |
| Command | What it does |
|---|---|
| :FETCh? | Fetch Value. Returns the last measurement without re-triggering. |
| Command | What it does |
|---|---|
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
40 command headers in the NGU201 library have no match in the 2450 library. Below are 17 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz NGU201 command reference.
| Command | What it does |
|---|---|
| :SOURce:VOLTage? | Read Voltage Setting. Queries the currently set output voltage value. |
| :SOURce:CURRent? | Read Current Setting. Queries the currently set output current limit value. |
| :SOURce:PRIority <Mode> | Set Source Priority. Sets the source priority mode to voltage priority (CV) or current priority (CC). |
| :SOURce:PRIority? | Read Source Priority. Queries the current source priority mode setting (VOLTage or CURRent). |
| Command | What it does |
|---|---|
| :OUTPut:STATe ON | Turn On. Enables the SMU channel output. |
| :OUTPut:STATe? | Read Output State. Queries if the channel output is ON or OFF. |
| :OUTPut:MODE <Mode> | Set Output Mode. Sets the output operating mode to AUTO SINK or SOURCE. |
| :OUTPut:MODE? | Read Output Mode. Queries the current output mode setting. |
| Command | What it does |
|---|---|
| *ESE <Value> | Set Event Status Enable. Sets the event status enable register to control which events set the ESB bit. |
| *ESR? | Read Event Status. Queries and clears the event status register returning the accumulated event byte. |
| *STB? | Read Status Byte. Queries the status byte register without clearing it. |
| *SRE <Value> | Set Service Request Enable. Sets the service request enable register to control which status bits generate a SRQ. |
| Command | What it does |
|---|---|
| :SENSe:CURRent:RANGe:AUTO <State> | Set Current Range Auto. Enables or disables automatic current measurement range selection. |
| :SENSe:NPLCycles <Cycles> | Set PLC. Sets the number of power line cycles (NPLC) used for measurement integration time. |
| :SENSe:NPLCycles? | Read PLC. Queries the currently configured number of power line cycles for measurement. |
| Command | What it does |
|---|---|
| :APPLy <Voltage>, <Current> | Set Voltage And Current. |
| Command | What it does |
|---|---|
| :MEASure:POWer? | Measure Power. Measures and returns the actual output power in watts. |
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:VOLTage:RANGe:AUTO (voltage sense autorange on), and the same line runs on each. For the reading, both libraries hold :MEASure:VOLTage? (measure voltage), 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_2450_ADDRESS") # Keithley 2450
b = rm.open_resource("PASTE_NGU201_ADDRESS") # Rohde & Schwarz NGU201
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Voltage Sense Autorange On
a.write(":SENSe:VOLTage:RANGe:AUTO ON")
b.write(":SENSe:VOLTage:RANGe:AUTO ON")
# The same reading on both: Measure Voltage
print(a.query(":MEASure:VOLTage?"))
print(b.query(":MEASure:VOLTage?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2450 or Rohde & Schwarz NGU201 and writes the report from the measured results.
In TestFlow's library the 2450 has 49 SCPI commands and the NGU201 has 58 SCPI commands. 14 command headers are common to both, 22 are only on the 2450 (mostly SOURce and SENSe), and 40 are only on the NGU201 (mostly SOURce and OUTPut).
Partly. 14 command headers are accepted by both, including :SENSe:VOLTage:RANGe, :SOURce:VOLTage, and :MEASure:VOLTage?. 62 are not, for example :SOURce:FUNCtion on the 2450 and :SOURce:VOLTage? on the NGU201, so a script that uses those needs a separate branch for each instrument.
The NGU201: 49 commands for the 2450 against 58 for the NGU201 in TestFlow's library. Of those, 12 on the 2450 and 17 on the NGU201 are queries that read a value or state, and the library splits them into 13 and 11 subsystems.
Only the 2450 library has an operation-complete command (*OPC?); the NGU201 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.