Source Meter · SCPI command reference

Aim-TTi SMU4001 and SMU4201 SCPI commands

The Aim-TTi SMU4001 and SMU4201 source meter is controlled remotely with SCPI commands. TestFlow's instrument library holds 41 commands for it, 11 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the SMU4001 on a real bench.

Commands
41
Queries
11
Subsystems
10
Models covered
2

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi SMU4001 or SMU4201 and writes the report from the measured results.

Get started

Control the Aim-TTi SMU4001 from Python

With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.

import pyvisa

rm = pyvisa.ResourceManager()
print(rm.list_resources())  # find the Aim-TTi SMU4001's VISA address

# Paste the address of your Aim-TTi SMU4001 (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000  # ms

print(inst.query("*IDN?"))  # identify the instrument
inst.write("OUTPut:STATe ON")  # Turn On
print(inst.query("OUTPut:STATe?"))  # Read Output State

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Aim-TTi SMU4001 or SMU4201 and writes the report from the measured results.

Get started

Run a SMU4001 test without writing code

Describe the test in a sentence, for example “turn on on the SMU4001, then read output state and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.

Get started

SCPI command reference

41 commands in 10 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values. The SMU4001 and SMU4201 share this command set in TestFlow's library.

Source (SOURce) (17)

CommandWhat it doesArguments
SOURce:VOLTage:FIXed:LEVel <Voltage>Set Voltage Source. Sets the output voltage level in volts when in voltage source mode.Number
SOURce:CURRent:FIXed:LEVel <Amp>Set Current Source. Sets the output current level in amps when in current source mode.Number
SOURce:VOLTage:RANGe:VOLTage <Range>Set Source Voltage Range. Sets the source voltage range in volts.Text: 20MV,200MV,2V,20V,200V
SOURce:CURRent:RANGe:CURRent <Range>Set Source Current Range. Sets the source current range in amps.Text: 200NA,2UA,20UA,200UA,2MA,20MA,200MA,1A,3A
SOURce:VOLTage:RANGe:VOLTage:AUTO ONSource Voltage Autorange On. Enables source voltage autorange.None
SOURce:VOLTage:RANGe:VOLTage:AUTO OFFSource Voltage Autorange Off. Disables source voltage autorange.None
SOURce:CURRent:VOLTage:LIMit <Voltage>Set Voltage Limit. Sets the voltage limit (compliance) when sourcing current.Number
SOURce:VOLTage:CURRent:LIMit <Amp>Set Current Limit. Sets the current limit (compliance) when sourcing voltage.Number
SOURce:VOLTage:FIXed:APERture:NPLCycles <Cycles>Set NPLC. Sets the integration time in power line cycles for current measurement.Number
SOURce:VOLTage:TERMinals 4WIReSet Four Wire On. Enables 4-wire (remote sense) measurement.None
SOURce:VOLTage:TERMinals 2WIReSet Four Wire Off. Disables 4-wire sense (uses 2-wire local sense).None
SOURce:VOLTage:OUTPut:OFF:MODE HIZSet Output Off Mode Himp. Sets the output-off state to high impedance.None
SOURce:VOLTage:OUTPut:OFF:MODE ZEROSet Output Off Mode Zero. Sets the output-off state to zero.None
SOURce:VOLTage:MEASure:PRIMary VOLTage ; MEASure:PRIMary:LIVEdata?Measure Voltage. Triggers and returns the measured voltage in volts.None
SOURce:VOLTage:MEASure:PRIMary CURRent ; MEASure:PRIMary:LIVEdata?Measure Current. Triggers and returns the measured current in amps.None
SOURce:VOLTage:MEASure:PRIMary RESistance ; MEASure:PRIMary:LIVEdata?Measure Resistance. Triggers and returns the measured resistance in ohms.None
SOURce:VOLTage:MEASure:COUNt <Count>Set Measure Count. Sets the number of measurements made per trigger.Number

System (SYSTem) (7)

CommandWhat it doesArguments
SYSTem:FUNCtion:MODE <Function>Set Source Function. Sets the source function to voltage or current mode.Text: SOURCEVOLTage,SOURCECURRent
SYSTem:FUNCtion:MODE?Read Source Function. Reads the present source function.None
SYSTem:PROTection:CURRent:TRIPped?Read Source Limit Tripped. Reads whether the source limit has been tripped.None
SYSTem:FUNCtion:MODE MEASUREVOLTageSet Sense Function Voltage. Selects voltage as the measurement function.None
SYSTem:FUNCtion:MODE MEASURECURRentSet Sense Function Current. Selects current as the measurement function.None
SYSTem:FUNCtion:MODE MEASURERESistanceSet Sense Function Resistance. Selects resistance as the measurement function.None
:SYSTem:ERRor?Read Error. Reads the first message from the error queue.None

Sense (SENSe) (4)

CommandWhat it doesArguments
SENSe:VOLTage:RANGe:VOLTage <Range>Set Voltage Sense Range. Sets the voltage measurement range in volts.Text: 20MV,200MV,2V,20V,200V
SENSe:CURRent:RANGe:CURRent <Range>Set Current Sense Range. Sets the current measurement range in amps.Text: 200NA,2UA,20UA,200UA,2MA,20MA,200MA,1A,3A
SENSe:VOLTage:RANGe:VOLTage:AUTO ONVoltage Sense Autorange On. Enables voltage measurement autorange.None
SENSe:VOLTage:RANGe:VOLTage:AUTO OFFVoltage Sense Autorange Off. Disables voltage measurement autorange.None

Output (OUTPut) (3)

CommandWhat it doesArguments
OUTPut:STATe ONTurn On. Enables the source output.None
OUTPut:STATe OFFTurn Off. Disables the source output.None
OUTPut:STATe?Read Output State. Reads whether the output is ON or OFF.None

Measurement (MEASure) (1)

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

MEM subsystem (1)

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

Other subsystem (1)

CommandWhat it doesArguments
<Output Variable>=<Equation>Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)Number; Text

WAIT subsystem (1)

CommandWhat it doesArguments
wait(<ms>)Wait. Waits for number of millisecondsNumber

SAVE subsystem (1)

CommandWhat it doesArguments
save2var <Variable_name>Save2Variable. Saves last measurement to a variableText

IEEE 488.2 common commands (5)

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

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Aim-TTi's programming documentation for the SMU4001 and SMU4201 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Aim-TTi's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Aim-TTi SMU4001 support SCPI remote control?

Yes. The Aim-TTi SMU4001 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 41 SCPI commands for it: 11 queries that read values or state, and 30 settings and actions.

How do I control the Aim-TTi SMU4001 from Python?

Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, OUTPut:STATe ON and OUTPut:STATe?.

Which command reads a value from the Aim-TTi SMU4001?

OUTPut:STATe? (read output state). Reads whether the output is ON or OFF. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Aim-TTi SMU4001 without writing code?

Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Aim-TTi SMU4001 through the TestFlow desktop app, and writes the report from the measured results.

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.