In TestFlow's instrument library, the Aim-TTi SMU4001 takes 41 SCPI commands, 11 of them queries, and the Rohde & Schwarz NGU201 takes 58 SCPI commands, 17 of them queries. That is 17 more on the NGU201. Counting distinct command headers (the command path without its arguments), 7 are accepted by both, 21 exist only on the SMU4001, and 47 only on the NGU201. 25% of the SMU4001's command headers also exist on the NGU201.
Both libraries have commands under SOURce, SYSTem, SENSe, OUTPut, and MEASure. Only the SMU4001 has MEMory. Only the NGU201 has APPLy and TRIGger.
Only the SMU4001 library has an operation-complete command (*OPC?); the NGU201 library has none. 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.
Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi SMU4001 or Rohde & Schwarz NGU201 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 | Rohde & Schwarz NGU201 | |
|---|---|---|
| Commands in TestFlow's library | 41 | 58 |
| Queries (read a value or state) | 11 | 17 |
| Settings and actions | 30 | 41 |
| Subsystems | 10 | 11 |
| Distinct command headers | 28 | 54 |
| Headers the other lacks | 21 | 47 |
| Command language | SCPI | SCPI |
| Operation complete | *OPC? | Not in library |
| Error queue | SYSTem:ERRor? | SYSTem:ERRor? |
| Models on this command set | SMU4001, SMU4201 | NGU201 |
7 command headers are in both libraries.
| Command | What it does |
|---|---|
| :SYSTem:ERRor? | Read Error. Reads the first message from the error queue. |
| OUTPut:STATe ON | Turn On. Enables the source output. |
| *IDN? | Identify. Returns the instrument identification string (manufacturer, model, serial, firmware). |
| OUTPut:STATe? | Read Output State. Reads whether the output is ON or OFF. |
| *RST | Reset. Resets the instrument to its default state. |
| *CLS | Clear Status. Clears all event registers and the error queue. |
| *TRG | Trigger Bus. Generates a bus trigger when the instrument is in wait-for-trigger state. |
21 command headers in the SMU4001 library have no match in the NGU201 library. Below are 13 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 |
|---|---|
| *OPC? | Operation Complete. Returns 1 when all pending operations are complete. |
| 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. |
47 command headers in the NGU201 library have no match in the SMU4001 library. Below are 20 of them from the 6 largest subsystems; the full list is in the Rohde & Schwarz NGU201 command reference.
| Command | What 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. |
| Command | What it does |
|---|---|
| :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. |
| :OUTPut:IMPedance <Impedance> | Set Output Impedance. Sets the emulated internal output impedance in ohms. |
| :OUTPut:IMPedance:STATe <State> | Set Output Impedance State. Enables or disables the emulated internal output impedance feature. |
| Command | What it does |
|---|---|
| *TST? | Self Test. Performs a self-test and returns 0 if passed or a non-zero error code if failed. |
| *ESE <Value> | Set Event Status Enable. Sets the event status enable register to control which events set the ESB bit. |
| *ESR? | Read Event Status. Queries and clears the event status register returning the accumulated event byte. |
| *STB? | Read Status Byte. Queries the status byte register without clearing it. |
| Command | What 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. |
| Command | What 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. |
| Command | What it does |
|---|---|
| :APPLy <Voltage>, <Current> | Set Voltage And Current. |
With PyVISA and any VISA backend, this opens both instruments, identifies them, sends one setting, and reads one value from each. For the setting, both libraries hold OUTPut:STATe (turn on), and the same line runs on each. For the reading, both libraries hold OUTPut:STATe? (read output state), 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_NGU201_ADDRESS") # Rohde & Schwarz NGU201
for inst in (a, b):
inst.timeout = 5000 # ms
print(inst.query("*IDN?"))
# The same setting on both: Turn On
a.write("OUTPut:STATe ON")
b.write(":OUTPut:STATe ON")
# The same reading on both: Read Output State
print(a.query("OUTPut:STATe?"))
print(b.query(":OUTPut:STATe?"))
a.close()
b.close()Describe the test; TestFlow's agent uses these command sets to drive your Aim-TTi SMU4001 or Rohde & Schwarz NGU201 and writes the report from the measured results.
In TestFlow's library the SMU4001 has 41 SCPI commands and the NGU201 has 58 SCPI commands. 7 command headers are common to both, 21 are only on the SMU4001 (mostly SOURce and SENSe), and 47 are only on the NGU201 (mostly SOURce and OUTPut).
Partly. 7 command headers are accepted by both, including :SYSTem:ERRor?, OUTPut:STATe, and OUTPut:STATe?. 68 are not, for example SOURce:VOLTage:FIXed:LEVel on the SMU4001 and :SOURce:VOLTage on the NGU201, so a script that uses those needs a separate branch for each instrument.
The NGU201: 41 commands for the SMU4001 against 58 for the NGU201 in TestFlow's library. Of those, 11 on the SMU4001 and 17 on the NGU201 are queries that read a value or state, and the library splits them into 10 and 11 subsystems.
Only the SMU4001 library has an operation-complete command (*OPC?); the NGU201 library has none. 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.