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.
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.
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 SMU4001 | Keithley 2450 | |
|---|---|---|
| Commands in TestFlow's library | 41 | 49 |
| Queries (read a value or state) | 11 | 12 |
| Settings and actions | 30 | 37 |
| Subsystems | 10 | 13 |
| Distinct command headers | 28 | 36 |
| Headers the other lacks | 22 | 30 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | *OPC? |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | SMU4001, SMU4201 | 2450, 2460, 2470 |
6 command headers are in both libraries.
| Command | What 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). |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| *TRG | Trigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state. |
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.
| Command | What 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. |
| Command | What 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 ON | Voltage Sense Autorange On. Enables voltage measurement autorange. |
| Command | What 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. |
| Command | What it does |
|---|---|
| OUTPut:STATe ON | Turn On. Enables the source output. |
| OUTPut:STATe? | Read Output State. Reads whether the output is ON or OFF. |
| Command | What it does |
|---|---|
| MEASure:PRIMary:LIVEdata? | Read Value. Triggers and returns one measurement of the active sense function. |
| Command | What it does |
|---|---|
| MEMory:DATA:BUFFer:ASCii? | Fetch Value. Returns the last measurement without re-triggering. |
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.
| 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 <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. |
| Command | What 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 ON | Voltage Sense Autorange On. Enables voltage measurement autorange. |
| Command | What 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. |
| 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 |
|---|---|
| *TST? | Self Test. Runs the self-test and returns 0 for pass or 1 for failure. |
| *WAI | Wait To Continue. Waits until all pending operations are complete before continuing. |
| Command | What it does |
|---|---|
| :ABORt | Abort. Aborts the current operation and returns to idle. |
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()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.
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).
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.
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.
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.