The Rohde & Schwarz NGU201 source meter is controlled remotely with SCPI commands. TestFlow's instrument library holds 58 commands for it, 17 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 NGU201 on a real bench.
Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz NGU201 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 Rohde & Schwarz NGU201's VISA address
# Paste the address of your Rohde & Schwarz NGU201 (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(":MEASure:VOLTage?")) # Measure Voltage
inst.close()Describe the test; TestFlow's agent uses this command set to drive your Rohde & Schwarz NGU201 and writes the report from the measured results.
Describe the test in a sentence, for example “turn on on the NGU201, then measure voltage 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.
58 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.
| Command | What it does | Arguments |
|---|---|---|
| :SOURce:VOLTage <Voltage> | Set Voltage. Sets the output voltage level of the SMU channel. | Number |
| :SOURce:CURRent <Current> | Set Current. Sets the output current level or current limit of the SMU channel. | Number |
| :SOURce:VOLTage? | Read Voltage Setting. Queries the currently set output voltage value. | None |
| :SOURce:CURRent? | Read Current Setting. Queries the currently set output current limit value. | None |
| :SOURce:PRIority <Mode> | Set Source Priority. Sets the source priority mode to voltage priority (CV) or current priority (CC). | Text: VOLTage,CURRent |
| :SOURce:PRIority? | Read Source Priority. Queries the current source priority mode setting (VOLTage or CURRent). | None |
| :SOURce:VOLTage:ALIMit:UPPer <Voltage> | Set Voltage Safety Limit. Sets the safety upper voltage limit to protect the DUT from overvoltage. | Number |
| :SOURce:CURRent:ALIMit:UPPer <Current> | Set Current Safety Limit. Sets the safety upper current limit to protect the DUT from overcurrent. | Number |
| :SOURce:VOLTage:PROTection:STATe <State> | Set OVP State. Enables or disables the overvoltage protection (OVP) function. | Text: ON,OFF |
| :SOURce:VOLTage:PROTection:LEVel <Voltage> | Set OVP Level. Sets the overvoltage protection (OVP) trip level in volts. | Number |
| :SOURce:VOLTage:PROTection:TRIPped? | Read OVP Tripped. Queries whether the overvoltage protection has been triggered (0 or 1). | None |
| :SOURce:VOLTage:PROTection:CLEar | Clear OVP. Clears a tripped overvoltage protection condition and re-enables the output. | None |
| :SOURce:CURRent:PROTection:STATe <State> | Set OCP State. Enables or disables the overcurrent protection (OCP) function. | Text: ON,OFF |
| :SOURce:CURRent:PROTection:LEVel <Current> | Set OCP Level. Sets the overcurrent protection (OCP) trip level in amperes. | Number |
| :SOURce:CURRent:PROTection:TRIPped? | Read OCP Tripped. Queries whether the overcurrent protection has been triggered (0 or 1). | None |
| :SOURce:CURRent:PROTection:CLEar | Clear OCP. Clears a tripped overcurrent protection condition and re-enables the output. | None |
| :SOURce:POWer:PROTection:STATe <State> | Set OPP State. Enables or disables the overpower protection (OPP) function. | Text: ON,OFF |
| :SOURce:POWer:PROTection:LEVel <Power> | Set OPP Level. Sets the overpower protection (OPP) trip level in watts. | Number |
| :SOURce:VOLTage:RAMP:STATe <State> | Set Ramp State. Enables or disables the voltage ramp function. | Text: ON,OFF |
| :SOURce:VOLTage:RAMP:DURation <Duration> | Set Ramp Duration. Sets the ramp duration in seconds (range 10 ms to 10 s) for voltage ramp-up. | Number |
| :SOURce:RESistance:STATe <State> | Set Resistance Mode. Enables or disables constant resistance (CR) mode. Available on NGU201 only. | Text: ON,OFF |
| :SOURce:RESistance <Resistance> | Set Resistance. Sets the resistance value in ohms for constant resistance (CR) mode operation. | Number |
| Command | What it does | Arguments |
|---|---|---|
| :OUTPut:STATe ON | Turn On. Enables the SMU channel output. | None |
| :OUTPut:STATe OFF | Turn Off. Disables the SMU channel output. | None |
| :OUTPut:STATe? | Read Output State. Queries if the channel output is ON or OFF. | None |
| :OUTPut:MODE <Mode> | Set Output Mode. Sets the output operating mode to AUTO SINK or SOURCE. | Text: AUTO,SINK,SOURce |
| :OUTPut:MODE? | Read Output Mode. Queries the current output mode setting. | None |
| :OUTPut:IMPedance <Impedance> | Set Output Impedance. Sets the emulated internal output impedance in ohms. | Number |
| :OUTPut:IMPedance:STATe <State> | Set Output Impedance State. Enables or disables the emulated internal output impedance feature. | Text: ON,OFF |
| :OUTPut:DELay <Delay> | Set Output Delay. Sets the delay time in seconds between output enable and voltage application. | Number |
| :OUTPut:DELay:STATe <State> | Set Output Delay State. Enables or disables the output delay feature. | Text: ON,OFF |
| :OUTPut:FTResponse <State> | Set Fast Transient. Enables or disables the fast transient response mode (voltage recovery <= 30 us). | Text: 0,1 |
| Command | What it does | Arguments |
|---|---|---|
| :SENSe:VOLTage:RANGe <Range> | Set Voltage Range. Sets the voltage measurement range (5 V or 20 V). | Number: 6,20 |
| :SENSe:CURRent:RANGe <Range> | Set Current Range. Sets the current measurement range in amperes. | Number: 10,3,0.1,0.01,0.001,0.00001 |
| :SENSe:VOLTage:RANGe:AUTO <State> | Set Voltage Range Auto. Enables or disables automatic voltage measurement range selection. | Text: ON,OFF |
| :SENSe:CURRent:RANGe:AUTO <State> | Set Current Range Auto. Enables or disables automatic current measurement range selection. | Text: ON,OFF |
| :SENSe:NPLCycles <Cycles> | Set PLC. Sets the number of power line cycles (NPLC) used for measurement integration time. | Number |
| :SENSe:NPLCycles? | Read PLC. Queries the currently configured number of power line cycles for measurement. | None |
| Command | What it does | Arguments |
|---|---|---|
| :MEASure:VOLTage? | Measure Voltage. Measures and returns the actual output voltage at the terminals. | None |
| :MEASure:CURRent? | Measure Current. Measures and returns the actual output current at the terminals. | None |
| :MEASure:POWer? | Measure Power. Measures and returns the actual output power in watts. | None |
| Command | What it does | Arguments |
|---|---|---|
| :SYSTem:ERRor? | System Error. Queries the first error in the error queue returning an error code and message string. | None |
| :SYSTem:VERSion? | System Version. Queries the SCPI version to which the instrument conforms. | None |
| Command | What it does | Arguments |
|---|---|---|
| :APPLy <Voltage>, <Current> | Set Voltage And Current. | Number; Number |
| Command | What it does | Arguments |
|---|---|---|
| :TRIGger:SOURce <Source> | Set Trigger Source. Sets the trigger source for triggered operations. | Text: OUTPut,OMODe,DIO |
| 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 |
|---|---|---|
| *TRG | Send Software Trigger. Sends an immediate software trigger to start a triggered measurement or sequence. | None |
| *RST | Reset. Resets the instrument to factory default settings and clears all pending operations. | None |
| *IDN? | Identify. Queries the instrument identification string including manufacturer model serial number and firmware version. | None |
| *TST? | Self Test. Performs a self-test and returns 0 if passed or a non-zero error code if failed. | None |
| *CLS | Clear Status. Clears the status byte event status register and error queue. | None |
| *ESE <Value> | Set Event Status Enable. Sets the event status enable register to control which events set the ESB bit. | Number |
| *ESR? | Read Event Status. Queries and clears the event status register returning the accumulated event byte. | None |
| *STB? | Read Status Byte. Queries the status byte register without clearing it. | None |
| *SRE <Value> | Set Service Request Enable. Sets the service request enable register to control which status bits generate a SRQ. | Number |
| *WAI | Wait For Completion. Prevents the instrument from executing further commands until all pending operations are complete. | None |
This reference is generated from TestFlow's instrument library, which is drafted from Rohde & Schwarz's programming documentation for the NGU201 and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Rohde & Schwarz's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.
Yes. The Rohde & Schwarz NGU201 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 58 SCPI commands for it: 17 queries that read values or state, and 41 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 :MEASure:VOLTage?.
:MEASure:VOLTage? (measure voltage). Measures and returns the actual output voltage at the terminals. 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 Rohde & Schwarz NGU201 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.