Source Meter · SCPI command comparison

Keithley 2450 vs Rohde & Schwarz NGU201: SCPI commands and remote control compared

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.

2450 commands
49
NGU201 commands
58
Shared headers
14
Unique headers
62

Run this on your bench

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.

Get started

2450 vs NGU201 at a glance

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 2450Rohde & Schwarz NGU201
Commands in TestFlow's library4958
Queries (read a value or state)1217
Settings and actions3741
Subsystems1311
Distinct command headers3654
Headers the other lacks2240
Command languageSCPISCPI
Operation complete*OPC?Not in library
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command set2450, 2460, 2470NGU201

Commands both accept

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.

CommandWhat 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.
*RSTReset. 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.
*CLSClear 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.

Only on the Keithley 2450

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.

SOURce (8 only on the 2450)

CommandWhat 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.

SENSe (5 only on the 2450)

CommandWhat 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 ONSet Four Wire On. Enables 4-wire (remote sense) measurement.
:SENSe:COUNt <Count>Set Measure Count. Sets the number of measurements made per trigger.

OUTPut (3 only on the 2450)

CommandWhat it does
:OUTPut ONTurn On. Enables the source output.
:OUTPut?Read Output State. Reads whether the output is ON or OFF.
:OUTPut:SMODe HIMPedanceSet Output Off Mode Himp. Sets the output-off state to high impedance.

ABORt (1 only on the 2450)

CommandWhat it does
:ABORtAbort. Aborts the current operation and returns to idle.

FETCh (1 only on the 2450)

CommandWhat it does
:FETCh?Fetch Value. Returns the last measurement without re-triggering.

IEEE 488.2 common (*) (1 only on the 2450)

CommandWhat it does
*OPC?Operation Complete. Returns 1 when all pending operations are complete.

Only on the Rohde & Schwarz NGU201

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.

SOURce (20 only on the NGU201)

CommandWhat 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).

OUTPut (9 only on the NGU201)

CommandWhat it does
:OUTPut:STATe ONTurn 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.

IEEE 488.2 common (*) (4 only on the NGU201)

CommandWhat 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.

SENSe (3 only on the NGU201)

CommandWhat 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.

APPLy (1 only on the NGU201)

CommandWhat it does
:APPLy <Voltage>, <Current>Set Voltage And Current.

MEASure (1 only on the NGU201)

CommandWhat it does
:MEASure:POWer?Measure Power. Measures and returns the actual output power in watts.

Control both from Python

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()

Run this on your bench

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.

Get started

Frequently asked questions

What is the difference between the Keithley 2450 and the Rohde & Schwarz NGU201 for remote control?

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).

Can I use the same SCPI code for the Keithley 2450 and the Rohde & Schwarz NGU201?

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.

Which has more remote commands, the 2450 or the NGU201?

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.

How do the 2450 and NGU201 signal operation complete and report errors?

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.

Your next test, automated today

Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.