Source Meter · TSP and SCPI command comparison

Keithley 2601B vs Rohde & Schwarz NGU201: SCPI and TSP commands and remote control compared

In TestFlow's instrument library, the Keithley 2601B takes 39 TSP commands, 8 of them queries, and the Rohde & Schwarz NGU201 takes 58 SCPI commands, 17 of them queries. That is 19 more on the NGU201. Counting distinct command headers (the command path without its arguments), 0 are accepted by both, 29 exist only on the 2601B, and 54 only on the NGU201. The 2601B is programmed in TSP and the NGU201 in SCPI, so a script written for one does not run on the other without translating each command.

Only the 2601B has smua, errorqueue, localnode, beeper, reset, and status and 1 more. Only the NGU201 has SOURce, OUTPut, SENSe, MEASure, SYSTem, and APPLy and 1 more.

Only the 2601B library has an operation-complete command (waitcomplete()); the NGU201 library has none. The 2601B library reads errors with errorqueue.next() and the NGU201 library with SYSTem:ERRor?.

TestFlow's library gives the 2611B and 2635B the same command set as the 2601B, so the 2601B column applies to them too.

2601B commands
39
NGU201 commands
58
Shared headers
0
Unique headers
83

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Keithley 2601B or Rohde & Schwarz NGU201 and writes the report from the measured results.

Get started

2601B 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 2601BRohde & Schwarz NGU201
Commands in TestFlow's library3958
Queries (read a value or state)817
Settings and actions3141
Subsystems911
Distinct command headers2954
Headers the other lacks2954
Command languageTSPSCPI
Operation completewaitcomplete()Not in library
Error queueerrorqueue.next()SYSTem:ERRor?
Models on this command set2601B, 2611B, 2635BNGU201

Commands both accept

None. No command header in TestFlow's 2601B library matches one in its NGU201 library: the 2601B speaks TSP and the NGU201 speaks SCPI.

Only on the Keithley 2601B

29 command headers in the 2601B library have no match in the NGU201 library. Below are 9 of them from the 6 largest subsystems; the full list is in the Keithley 2601B command reference.

smua (23 only on the 2601B)

CommandWhat it does
smua.source.output = smua.OUTPUT_ONTurn On. Enables the output of SMU channel A (TSP command).
smua.source.func = smua.OUTPUT_DCVOLTSSet Source Function Voltage. Sets the source function of channel A to DC voltage.
smua.source.levelv = <Voltage>Set Voltage Source. Sets the output voltage level in volts on channel A.
smua.source.leveli = <Amp>Set Current Source. Sets the output current level in amps on channel A.

beeper (1 only on the 2601B)

CommandWhat it does
beeper.beep(<Duration>, <Frequency>)Beep. Sounds the beeper for the given duration and frequency.

errorqueue (1 only on the 2601B)

CommandWhat it does
print(errorqueue.next())Read Error. Reads the next message from the error queue.

localnode (1 only on the 2601B)

CommandWhat it does
print(localnode.description)Identify. Returns the instrument identification string.

reset (1 only on the 2601B)

CommandWhat it does
reset()Reset. Resets the entire instrument to its default state.

status (1 only on the 2601B)

CommandWhat it does
status.reset()Clear Status. Clears all status registers and the error queue.

Only on the Rohde & Schwarz NGU201

54 command headers in the NGU201 library have no match in the 2601B library. Below are 21 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz NGU201 command reference.

SOURce (22 only on the NGU201)

CommandWhat it does
:SOURce:VOLTage <Voltage>Set Voltage. Sets the output voltage level of the SMU channel.
:SOURce:CURRent <Current>Set Current. Sets the output current level or current limit of the SMU channel.
: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.

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

CommandWhat it does
*TRGSend Software Trigger. Sends an immediate software trigger to start a triggered measurement or sequence.
*RSTReset. Resets the instrument to factory default settings and clears all pending operations.
*IDN?Identify. Queries the instrument identification string including manufacturer model serial number and firmware version.
*TST?Self Test. Performs a self-test and returns 0 if passed or a non-zero error code if failed.

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.

SENSe (6 only on the NGU201)

CommandWhat it does
:SENSe:VOLTage:RANGe <Range>Set Voltage Range. Sets the voltage measurement range (5 V or 20 V).
:SENSe:CURRent:RANGe <Range>Set Current Range. Sets the current measurement range in amperes.
:SENSe:VOLTage:RANGe:AUTO <State>Set Voltage Range Auto. Enables or disables automatic voltage measurement range selection.
:SENSe:CURRent:RANGe:AUTO <State>Set Current Range Auto. Enables or disables automatic current measurement range selection.

MEASure (3 only on the NGU201)

CommandWhat it does
:MEASure:VOLTage?Measure Voltage. Measures and returns the actual output voltage at the terminals.
:MEASure:CURRent?Measure Current. Measures and returns the actual output current at the terminals.
:MEASure:POWer?Measure Power. Measures and returns the actual output power in watts.

SYSTem (2 only on the NGU201)

CommandWhat it does
:SYSTem:ERRor?System Error. Queries the first error in the error queue returning an error code and message string.
:SYSTem:VERSion?System Version. Queries the SCPI version to which the instrument conforms.

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, the two libraries have no common command with a worked example on both, so each instrument uses its own: smua.source.output = smua.OUTPUT_ON on the 2601B and :OUTPut:STATe ON on the NGU201. For the reading, the two libraries have no common command with a worked example on both, so each instrument uses its own: print(smua.measure.v()) on the 2601B and :MEASure:VOLTage? on the NGU201. 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_2601B_ADDRESS")  # Keithley 2601B
b = rm.open_resource("PASTE_NGU201_ADDRESS")  # Rohde & Schwarz NGU201
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("smua.source.output = smua.OUTPUT_ON")  # Turn On
b.write(":OUTPut:STATe ON")  # Turn On

# No shared reading with an example on both, so each uses its own command
print(a.query("print(smua.measure.v())"))  # Measure Voltage
print(b.query(":MEASure:VOLTage?"))  # 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 2601B or Rohde & Schwarz NGU201 and writes the report from the measured results.

Get started

Frequently asked questions

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

In TestFlow's library the 2601B has 39 TSP commands and the NGU201 has 58 SCPI commands. 0 command headers are common to both, 29 are only on the 2601B (mostly smua and beeper), and 54 are only on the NGU201 (mostly SOURce and IEEE 488.2 common (*)).

Can I use the same code for the Keithley 2601B and the Rohde & Schwarz NGU201?

Not directly. The 2601B uses TSP and the NGU201 uses SCPI, so each command has to be rewritten for the other instrument. PyVISA opens both the same way, and both answer *IDN?, but the commands that set and read values differ.

Which has more remote commands, the 2601B or the NGU201?

The NGU201: 39 commands for the 2601B against 58 for the NGU201 in TestFlow's library. Of those, 8 on the 2601B and 17 on the NGU201 are queries that read a value or state, and the library splits them into 9 and 11 subsystems.

How do the 2601B and NGU201 signal operation complete and report errors?

Only the 2601B library has an operation-complete command (waitcomplete()); the NGU201 library has none. The 2601B library reads errors with errorqueue.next() and the NGU201 library 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.