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.
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.
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()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.
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.
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.
| Command | What it does | Arguments |
|---|---|---|
| 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 ON | Source Voltage Autorange On. Enables source voltage autorange. | None |
| SOURce:VOLTage:RANGe:VOLTage:AUTO OFF | Source 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 4WIRe | Set Four Wire On. Enables 4-wire (remote sense) measurement. | None |
| SOURce:VOLTage:TERMinals 2WIRe | Set Four Wire Off. Disables 4-wire sense (uses 2-wire local sense). | None |
| SOURce:VOLTage:OUTPut:OFF:MODE HIZ | Set Output Off Mode Himp. Sets the output-off state to high impedance. | None |
| SOURce:VOLTage:OUTPut:OFF:MODE ZERO | Set 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 |
| Command | What it does | Arguments |
|---|---|---|
| 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 MEASUREVOLTage | Set Sense Function Voltage. Selects voltage as the measurement function. | None |
| SYSTem:FUNCtion:MODE MEASURECURRent | Set Sense Function Current. Selects current as the measurement function. | None |
| SYSTem:FUNCtion:MODE MEASURERESistance | Set Sense Function Resistance. Selects resistance as the measurement function. | None |
| :SYSTem:ERRor? | Read Error. Reads the first message from the error queue. | None |
| Command | What it does | Arguments |
|---|---|---|
| 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 ON | Voltage Sense Autorange On. Enables voltage measurement autorange. | None |
| SENSe:VOLTage:RANGe:VOLTage:AUTO OFF | Voltage Sense Autorange Off. Disables voltage measurement autorange. | None |
| Command | What it does | Arguments |
|---|---|---|
| OUTPut:STATe ON | Turn On. Enables the source output. | None |
| OUTPut:STATe OFF | Turn Off. Disables the source output. | None |
| OUTPut:STATe? | Read Output State. Reads whether the output is ON or OFF. | None |
| Command | What it does | Arguments |
|---|---|---|
| MEASure:PRIMary:LIVEdata? | Read Value. Triggers and returns one measurement of the active sense function. | None |
| Command | What it does | Arguments |
|---|---|---|
| MEMory:DATA:BUFFer:ASCii? | Fetch Value. Returns the last measurement without re-triggering. | None |
| Command | What it does | Arguments |
|---|---|---|
| <Output Variable>=<Equation> | Math. Variable equals an equation like (${Var_name}= ${Var_name}/2) | Number; Text |
| Command | What it does | Arguments |
|---|---|---|
| wait(<ms>) | Wait. Waits for number of milliseconds | Number |
| Command | What it does | Arguments |
|---|---|---|
| save2var <Variable_name> | Save2Variable. Saves last measurement to a variable | Text |
| Command | What it does | Arguments |
|---|---|---|
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). | None |
| *RST | Reset. Resets the instrument to its default state. | None |
| *CLS | Clear Status. Clears all event registers and the error queue. | None |
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. | None |
| *TRG | Trigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state. | None |
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.
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.
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?.
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.
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.
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.