Source Meter · SCPI command reference

Rohde & Schwarz NGU201 SCPI commands

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.

Commands
58
Queries
17
Subsystems
11
Models covered
1

Run this on your 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.

Get started

Control the Rohde & Schwarz NGU201 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 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()

Run this on your 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.

Get started

Run a NGU201 test without writing code

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.

Get started

SCPI command reference

58 commands in 11 groups. A ? marks a query that returns a value. Placeholders in angle brackets take the listed values.

Source (SOURce) (22)

CommandWhat it doesArguments
: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:CLEarClear 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:CLEarClear 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

Output (OUTPut) (10)

CommandWhat it doesArguments
:OUTPut:STATe ONTurn On. Enables the SMU channel output.None
:OUTPut:STATe OFFTurn 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

Sense (SENSe) (6)

CommandWhat it doesArguments
: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

Measurement (MEASure) (3)

CommandWhat it doesArguments
: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

System (SYSTem) (2)

CommandWhat it doesArguments
: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

Apply (APPLy) (1)

CommandWhat it doesArguments
:APPLy <Voltage>, <Current>Set Voltage And Current. Number; Number

Trigger (TRIGger) (1)

CommandWhat it doesArguments
:TRIGger:SOURce <Source>Set Trigger Source. Sets the trigger source for triggered operations.Text: OUTPut,OMODe,DIO

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 (10)

CommandWhat it doesArguments
*TRGSend Software Trigger. Sends an immediate software trigger to start a triggered measurement or sequence.None
*RSTReset. 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
*CLSClear 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
*WAIWait For Completion. Prevents the instrument from executing further commands until all pending operations are complete.None

Where these commands come from

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.

Frequently asked questions

Does the Rohde & Schwarz NGU201 support SCPI remote control?

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.

How do I control the Rohde & Schwarz NGU201 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 :MEASure:VOLTage?.

Which command reads a value from the Rohde & Schwarz NGU201?

: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.

Can I automate the Rohde & Schwarz NGU201 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 Rohde & Schwarz NGU201 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.