Source Meter · SCPI command comparison

Aim-TTi SMU4001 vs Keithley 2450: SCPI commands and remote control compared

In TestFlow's instrument library, the Aim-TTi SMU4001 takes 41 SCPI commands, 11 of them queries, and the Keithley 2450 takes 49 SCPI commands, 12 of them queries. That is 8 more on the 2450. Counting distinct command headers (the command path without its arguments), 6 are accepted by both, 22 exist only on the SMU4001, and 30 only on the 2450. 21% of the SMU4001's command headers also exist on the 2450.

Both libraries have commands under SOURce, SYSTem, SENSe, OUTPut, and MEASure. Only the SMU4001 has MEMory. Only the 2450 has READ, FETCh, INITiate, and ABORt.

Both libraries synchronise with *OPC?. Both libraries read errors with SYSTem:ERRor?.

TestFlow's library gives the SMU4201 the same command set as the SMU4001, so the SMU4001 column applies to it too. TestFlow's library gives the 2460 and 2470 the same command set as the 2450, so the 2450 column applies to them too.

SMU4001 commands
41
2450 commands
49
Shared headers
6
Unique headers
52

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi SMU4001 or Keithley 2450 and writes the report from the measured results.

Get started

SMU4001 vs 2450 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.

Aim-TTi SMU4001Keithley 2450
Commands in TestFlow's library4149
Queries (read a value or state)1112
Settings and actions3037
Subsystems1013
Distinct command headers2836
Headers the other lacks2230
Command languageSCPISCPI
Operation complete*OPC?*OPC?
Error queueSYSTem:ERRor?SYSTem:ERRor?
Models on this command setSMU4001, SMU42012450, 2460, 2470

Commands both accept

6 command headers are in both libraries.

CommandWhat it does
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.
*IDN?Identify. Returns the instrument identification string (manufacturer, model, serial, firmware).
*RSTReset. Resets the instrument to its default state.
*CLSClear Status. Clears all event registers and the error queue.
*OPC?Operation Complete. Returns 1 when all pending operations are complete.
*TRGTrigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state.

Only on the Aim-TTi SMU4001

22 command headers in the SMU4001 library have no match in the 2450 library. Below are 14 of them from the 6 largest subsystems; the full list is in the Aim-TTi SMU4001 command reference.

SOURce (12 only on the SMU4001)

CommandWhat it does
SOURce:VOLTage:FIXed:LEVel <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.
SOURce:CURRent:FIXed:LEVel <Amp>Set Current Source. Sets the output current level in amps when in current source mode.
SOURce:VOLTage:RANGe:VOLTage <Range>Set Source Voltage Range. Sets the source voltage range in volts.
SOURce:CURRent:RANGe:CURRent <Range>Set Source Current Range. Sets the source current range in amps.

SENSe (3 only on the SMU4001)

CommandWhat it does
SENSe:VOLTage:RANGe:VOLTage <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.
SENSe:CURRent:RANGe:CURRent <Range>Set Current Sense Range. Sets the current measurement range in amps.
SENSe:VOLTage:RANGe:VOLTage:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.

SYSTem (3 only on the SMU4001)

CommandWhat it does
SYSTem:FUNCtion:MODE <Function>Set Source Function. Sets the source function to voltage or current mode.
SYSTem:FUNCtion:MODE?Read Source Function. Reads the present source function.
SYSTem:PROTection:CURRent:TRIPped?Read Source Limit Tripped. Reads whether the source limit has been tripped.

OUTPut (2 only on the SMU4001)

CommandWhat it does
OUTPut:STATe ONTurn On. Enables the source output.
OUTPut:STATe?Read Output State. Reads whether the output is ON or OFF.

MEASure (1 only on the SMU4001)

CommandWhat it does
MEASure:PRIMary:LIVEdata?Read Value. Triggers and returns one measurement of the active sense function.

MEMory (1 only on the SMU4001)

CommandWhat it does
MEMory:DATA:BUFFer:ASCii?Fetch Value. Returns the last measurement without re-triggering.

Only on the Keithley 2450

30 command headers in the 2450 library have no match in the SMU4001 library. Below are 17 of them from the 6 largest subsystems; the full list is in the Keithley 2450 command reference.

SOURce (10 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 <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.
:SOURce:CURRent <Amp>Set Current Source. Sets the output current level in amps when in current source mode.

SENSe (8 only on the 2450)

CommandWhat it does
:SENSe:FUNCtion "VOLTage"Set Sense Function Voltage. Selects voltage as the measurement function.
:SENSe:VOLTage:RANGe <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.
:SENSe:CURRent:RANGe <Range>Set Current Sense Range. Sets the current measurement range in amps.
:SENSe:VOLTage:RANGe:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.

MEASure (3 only on the 2450)

CommandWhat it does
:MEASure:VOLTage?Measure Voltage. Triggers and returns the measured voltage in volts.
:MEASure:CURRent?Measure Current. Triggers and returns the measured current in amps.
:MEASure:RESistance?Measure Resistance. Triggers and returns the measured resistance in ohms.

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.

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

CommandWhat it does
*TST?Self Test. Runs the self-test and returns 0 for pass or 1 for failure.
*WAIWait To Continue. Waits until all pending operations are complete before continuing.

ABORt (1 only on the 2450)

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

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: OUTPut:STATe ON on the SMU4001 and :OUTPut ON on the 2450. 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_SMU4001_ADDRESS")  # Aim-TTi SMU4001
b = rm.open_resource("PASTE_2450_ADDRESS")  # Keithley 2450
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")  # Turn On
b.write(":OUTPut ON")  # Turn On

# The same reading on both: Read Error
print(a.query(":SYSTem:ERRor?"))
print(b.query(":SYSTem:ERRor?"))

a.close()
b.close()

Run this on your bench

Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi SMU4001 or Keithley 2450 and writes the report from the measured results.

Get started

Frequently asked questions

What is the difference between the Aim-TTi SMU4001 and the Keithley 2450 for remote control?

In TestFlow's library the SMU4001 has 41 SCPI commands and the 2450 has 49 SCPI commands. 6 command headers are common to both, 22 are only on the SMU4001 (mostly SOURce and SENSe), and 30 are only on the 2450 (mostly SOURce and SENSe).

Can I use the same SCPI code for the Aim-TTi SMU4001 and the Keithley 2450?

Partly. 6 command headers are accepted by both, including :SYSTem:ERRor?. 52 are not, for example SOURce:VOLTage:FIXed:LEVel on the SMU4001 and :SOURce:FUNCtion on the 2450, so a script that uses those needs a separate branch for each instrument.

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

The 2450: 41 commands for the SMU4001 against 49 for the 2450 in TestFlow's library. Of those, 11 on the SMU4001 and 12 on the 2450 are queries that read a value or state, and the library splits them into 10 and 13 subsystems.

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

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.

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.