Power Supply · SCPI command reference

Rohde & Schwarz HMC8043 SCPI commands

The Rohde & Schwarz HMC8043 power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 70 commands for it, 28 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 HMC8043 on a real bench.

Commands
70
Queries
28
Subsystems
11
Models covered
1

Control the Rohde & Schwarz HMC8043 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 HMC8043's VISA address

# Paste the address of your Rohde & Schwarz HMC8043 (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("VOLTage UP")  # Voltage Up
print(inst.query("MEASure:VOLTage?"))  # Measure Voltage

inst.close()

Run a HMC8043 test without writing code

Describe the test in a sentence, for example “voltage up on the HMC8043, 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

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

Voltage (VOLTage) (13)

CommandWhat it doesArguments
VOLTage <Voltage>Set Voltage. Voltage setpoint of the selected channel (manual p.26).Number: 0.000 to 32.050 volts in 1 mV steps, or MIN/MAX
VOLTage?Read Voltage Setpoint. Return the selected channel's voltage setpoint in V (manual p.26).None
VOLTage UPVoltage Up. Raise the selected channel's voltage by one step (Set_Voltage_Step) (manual p.27).None
VOLTage DOWNVoltage Down. Lower the selected channel's voltage by one step (manual p.27).None
VOLTage:STEP <Step>Set Voltage Step. Step size of Voltage_Up and Voltage_Down (manual p.27).Number: 0.000 to 32.050 volts in 1 mV steps, or DEFault (1 V)
VOLTage:PROTection <State>Set OVP. Turn the selected channel's over-voltage protection on or off (manual p.34).Text: ON,OFF
VOLTage:PROTection?Read OVP. Return 1 when the selected channel's OVP is on, else 0 (manual p.35).None
VOLTage:PROTection:LEVel <Voltage>Set OVP Level. Over-voltage protection level of the selected channel (manual p.35).Number: 0 to 32.50 volts in 1 mV steps, or MIN/MAX/DEF
VOLTage:PROTection:LEVel?Read OVP Level. Return the selected channel's OVP level in V (manual p.35).None
VOLTage:PROTection:TRIPped?Read OVP Tripped. Return 1 when the selected channel's OVP has tripped, else 0 (manual p.35).None
VOLTage:PROTection:CLEarClear OVP. Reset a tripped OVP on the selected channel (manual p.35).None
VOLTage:PROTection:MODE <Mode>Set OVP Mode. OVP trips on the measured output voltage (MEASured) or on the set voltage too (PROTected) (manual p.36).Text: MEASured,PROTected
VOLTage:PROTection:MODE?Read OVP Mode. Return the selected channel's OVP mode (manual p.36).None

Output (OUTPut) (9)

CommandWhat it doesArguments
OUTPut ONOutput On. Turn the selected channel's output on together with the master output (manual p.30).None
OUTPut OFFOutput Off. Turn the selected channel's output off; the master output stays on (manual p.30).None
OUTPut?Read Output. Return 1 when the selected channel's output is on, else 0 (manual p.30).None
OUTPut:CHANnel ONChannel Output On. Arm the selected channel; it outputs once the master output is on (manual p.30).None
OUTPut:CHANnel OFFChannel Output Off. Disarm the selected channel (manual p.30).None
OUTPut:CHANnel?Read Channel Output. Return 1 when the selected channel is armed, else 0 (manual p.31).None
OUTPut:MASTer ONMaster Output On. Turn on every armed channel at once (manual p.31).None
OUTPut:MASTer OFFMaster Output Off. Turn the master output off: no channel outputs (manual p.31).None
OUTPut:MASTer?Read Master Output. Return 1 when the master output is on, else 0 (manual p.31).None

FUSE subsystem (8)

CommandWhat it doesArguments
FUSE <State>Set Fuse. Turn the selected channel's electronic fuse on or off (manual p.32).Text: ON,OFF
FUSE?Read Fuse. Return 1 when the selected channel's fuse is on, else 0 (manual p.32).None
FUSE:DELay <Delay>Set Fuse Delay. Delay before the selected channel's fuse trips (manual p.32).Number: 0.01 to 10 seconds in 1 ms steps, or MIN/MAX
FUSE:DELay?Read Fuse Delay. Return the selected channel's fuse delay in s (manual p.33).None
FUSE:LINK <Channel>Link Fuse. Link the selected channel's fuse to another channel, so a trip on one turns both off (manual p.33).Number: 1, 2 or 3
FUSE:LINK? <Channel>Read Fuse Link. Return 1 when the selected channel's fuse is linked to that channel, else 0 (manual p.33).Number: 1, 2 or 3
FUSE:UNLink <Channel>Unlink Fuse. Remove the selected channel's fuse link to that channel (manual p.33).Number: 1, 2 or 3
FUSE:TRIPed?Read Fuse Tripped. Return 1 when the selected channel's fuse has tripped, else 0 (manual p.34).None

System (SYSTem) (7)

CommandWhat it doesArguments
SYSTem:ERRor?Read Error. Read and remove the oldest error, e.g. 0,"No error" or -102,"Syntax error" (manual p.23).None
SYSTem:VERSion?Read Version. Return the firmware version and the SCPI version (manual p.23).None
SYSTem:REMoteRemote. Switch to remote control (manual p.23).None
SYSTem:LOCalLocal. Return to front-panel control; also the only way to unlock after Remote_Lock (manual p.23).None
SYSTem:RWLockRemote Lock. Remote control with the front panel locked until Local is sent (manual p.23).None
SYSTem:BEEPerBeep. Sound one beep (manual p.22).None
SYSTem:BEEPer:STATe <State>Set Beeper. Turn the front-panel key beeper on or off (manual p.22).Text: ON,OFF

Current (CURRent) (6)

CommandWhat it doesArguments
CURRent <Current>Set Current. Current limit of the selected channel; 0.1 mA steps below 1 A, 1 mA above (manual p.28).Number: 0.0005 to 3.000 amperes, or MIN/MAX
CURRent?Read Current Setpoint. Return the selected channel's current setpoint in A (manual p.28).None
CURRent UPCurrent Up. Raise the selected channel's current by one step (Set_Current_Step) (manual p.28).None
CURRent DOWNCurrent Down. Lower the selected channel's current by one step (manual p.28).None
CURRent:STEP <Step>Set Current Step. Step size of Current_Up and Current_Down (manual p.28).Number: amperes, or DEFault (0.1 A)
CURRent:STEP?Read Current Step. Return the current step size in A (manual p.29).None

POW subsystem (6)

CommandWhat it doesArguments
POWer:PROTection <State>Set OPP. Turn the selected channel's over-power protection on or off (manual p.36).Text: ON,OFF
POWer:PROTection?Read OPP. Return 1 when the selected channel's OPP is on, else 0 (manual p.37).None
POWer:PROTection:LEVel <Power>Set OPP Level. Over-power protection level of the selected channel (manual p.37).Number: 0 to 33 watts in 10 mW steps, or MIN/MAX/DEF
POWer:PROTection:LEVel?Read OPP Level. Return the selected channel's OPP level in W (manual p.37).None
POWer:PROTection:TRIPped?Read OPP Tripped. Return 1 when the selected channel's OPP has tripped, else 0 (manual p.37).None
POWer:PROTection:CLEarClear OPP. Reset a tripped OPP on the selected channel (manual p.37).None

Measurement (MEASure) (6)

CommandWhat it doesArguments
MEASure:VOLTage?Measure Voltage. Return the voltage measured at the selected channel's output in V (manual p.38).None
MEASure:CURRent?Measure Current. Return the current measured at the selected channel's output in A (manual p.38).None
MEASure:POWer?Measure Power. Return the power measured at the selected channel's output in W (manual p.38).None
MEASure:ENERgy:STATe <State>Set Energy Meter. Turn the selected channel's energy meter on or off (manual p.38).Text: ON,OFF
MEASure:ENERgy?Read Energy. Return the energy the selected channel has delivered since the meter started, in Ws; the meter must be on (manual p.38).None
MEASure:ENERgy:RESetReset Energy Meter. Set the selected channel's energy meter back to zero (manual p.39).None

Instrument (INSTrument) (3)

CommandWhat it doesArguments
INSTrument:SELect <Channel>Select Channel. Select the channel the voltage, current, output, fuse, protection and measure commands act on (manual p.25).Text: OUT1,OUT2,OUT3
INSTrument:SELect?Read Selected Channel. Return the selected channel as 1, 2 or 3 (manual p.25).None
INSTrument:NSELect <Channel>Select Channel Number. Select a channel by its number, as Select_Channel does (manual p.25).Number: 1, 2 or 3

Display (DISPlay) (2)

CommandWhat it doesArguments
DISPlay:TEXT "<Text>"Display Text. Show a message on the display (manual p.24).Text
DISPlay:TEXT:CLEarClear Display Text. Remove the message Display_Text showed (manual p.24).None

Apply (APPLy) (2)

CommandWhat it doesArguments
APPLy <Voltage>,<Current>,<Channel>Set Voltage Current. Set a channel's voltage (V) and current (A) in one command; it takes about 100 ms (manual p.29).Number: 0.000 to 32.050 volts, or MIN/MAX/DEF; Number: 0.0005 to 3.000 amperes, or MIN/MAX/DEF; Text: OUT1,OUT2,OUT3
APPLy?Read Voltage Current Setpoints. Return the selected channel's voltage and current setpoints, e.g. 6.000E+00, 2.0000E+00 (manual p.29).None

IEEE 488.2 common commands (8)

CommandWhat it doesArguments
*IDN?Identify. Return maker, model, serial number and firmware version (manual p.20).None
*RSTReset. Reset the instrument to its defaults; every output turns off (manual p.20).None
*CLSClear Status. Clear the status registers and the error queue (manual p.19).None
*OPC?Operation Complete. Return 1 once every previous command has finished (manual p.20).None
*WAIWait. Hold further commands until every previous one has been executed (manual p.21).None
*TST?Self Test. Run the self-test and return its result, 0 when it passed (manual p.21).None
*SAV <Slot>Save State. Store the instrument settings in a memory location, overwriting it (manual p.54).Number: 0 to 9
*RCL <Slot>Recall State. Recall the settings stored in a memory location (manual p.54).Number: 0 to 9

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 HMC8043 and checked when the agent runs it. The library marks this instrument as supporting *OPC? for operation-complete synchronisation. It reads errors back with SYSTem:ERRor?. 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 October 26, 2026.

Frequently asked questions

Does the Rohde & Schwarz HMC8043 support SCPI remote control?

Yes. The Rohde & Schwarz HMC8043 accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 70 SCPI commands for it: 28 queries that read values or state, and 42 settings and actions.

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

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

MEASure:VOLTage? (measure voltage). Return the voltage measured at the selected channel's output in V (manual p.38). The full list of queries is in the command reference on this page, grouped by subsystem.

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