/

Rohde & Schwarz

/

Rohde & Schwarz ROHDE-SCHWARZ-HMP2020

SCPI COMMAND REFERENCE

Rohde & Schwarz ROHDE-SCHWARZ-HMP2020

Rohde & Schwarz ROHDE-SCHWARZ-HMP2020

The Rohde & Schwarz ROHDE-SCHWARZ-HMP2020 is Rohde & Schwarz's power supply in the HMP2000 family. Its SCPI remote-control interface exposes 56 commands across 11 subsystems - 41 settable and 15 queries - and every command is documented here with its parameters, accepted values, return format, and a copy-paste PyVISA example for automating test and measurement.

56

Commands

41

Settable

15

Queries

11

Subsystems

SCPI

Verified

2026-07-16

All commands

Queries the instrument-specific questionable status register summary for the selected channel. The returned value is a decimal number representing the bit pattern of the queried register.

integer - Decimal number representing the bit pattern of the queried status register.
STATus:QUEStionable:INStrument:ISUMmary1:COND?

Sets the enable mask for the STATus:QUEStionable register. A 1 bit in the enable mask causes a positive transition in the summary bit when the corresponding event bit is true.

NameTypeValuesDescription
Enable_Valueinteger0 - 65535Bit mask in decimal representation.

Sets the enable mask for the instrument-specific questionable status register. If a bit in the enable register is 1 and the corresponding event bit is true, a positive transition occurs in the summary bit and is reported to the next higher level.

NameTypeValuesDescription
Enable_Valueinteger0 - 65535Bit mask in decimal representation.

Queries the CONDition part of the instrument-specific questionable status summary register to check the current instrument states. Reading the CONDition registers does not delete the contents.

NameTypeValuesDescription
Conditioninteger0 - 65535Condition bits in decimal representation.
integer - Current instrument states from the CONDition part of the status register, returned as a decimal value.

Sets the enable mask for the instrument-specific status questionable summary register channel. If a bit in the enable mask is 1 and the corresponding event bit is true, a positive transition occurs in the summary bit and is reported to the next higher level.

NameTypeValuesDescription
Enable_Valueinteger0 - 65535Bit mask in decimal representation.

Queries the EVENt part of the status register to check whether an event has occurred since the last reading. Reading an EVENt register deletes its contents.

NameTypeValuesDescription
eventinteger0 - 65535Event bits in decimal representation.

Queries the EVENt part of the instrument questionable status register to check whether an event has occurred since the last reading. Reading the EVENt register deletes its contents.

integer - Decimal value of the event register, corresponding to the binary weight sum of the event bits.

Queries the EVENt part of the questionable status register to check whether an event has occurred since the last reading. Reading an EVENt register deletes its contents.

NameTypeValuesDescription
eventinteger0 - 65535Event bits in decimal representation.
integer - Event bits in decimal representation. Reading the register deletes its contents.

*CLSset / query

Clears the status byte, standard event register, and the event bits of the questionable and operation registers. It does not alter the mask or transition bits and also clears the output buffer.

*ESEset / query

Sets the event status enable register to the specified value. The query returns the contents of the event status enable register in decimal form.

NameTypeValuesDescription
Valueinteger-Value written to the event status enable register.
*ESR?query

Returns the contents of the event status register in decimal form and then sets the register to zero.

integer - Contents of the event status register in decimal form.
*IDN?query

Returns the instrument identification.

string - The instrument identification in the form "Rohde&Schwarz,<device type>,<part number>/<serial number>,<firmware version>".
*OPCset / query

Sets bit 0 in the event status register when all preceding commands have been executed. The query form writes a "1" into the output buffer when all preceding commands have been executed, for command synchronization.

*RSTset / query

Sets the instrument to a defined default status. The default settings are indicated in the description of commands.

*SREset / query

Sets the service request enable register to the indicated value. This command determines under which conditions a service request is triggered.

NameTypeValuesDescription
Contentsinteger0 - 255Value written to the service request enable register.
*SAVset / query

Stores the current instrument settings under the specified number in internal memory. The settings can be recalled using *RCL with the associated number.

NameTypeValuesDescription
numberinteger0 - 9Memory slot number used to store the current settings.
*STB?query

Reads the contents of the status byte in decimal form.

integer - Contents of the status byte in decimal form.
*TST?query

Initiates self-tests of the instrument and returns an error code.

integer - Error code returned by the self-test. 0 indicates no errors occurred; a value greater than 0 indicates an error occurred.
*WAIset / query

Prevents servicing of subsequent commands until all preceding commands have been executed and all signals have settled. See also command synchronization and *OPC.

*RCLset / query

Loads the instrument settings from an internal memory identified by the specified number. The settings can be stored to that memory using *SAV with the associated number.

NameTypeValuesDescription
numberinteger0 - 9Memory location to recall.

Selects a channel by number.

NameTypeValuesDescription
Channelinteger1 - 4Channel number to select.
INST:NSEL 1
INST:NSEL?

Selects a channel. The channel may be selected either by channel number or by output name.

NameTypeValuesDescription
channelenumOUTPut1 | OUTPut2 | OUTPut3 | OUTPut4 | OUTP1 | OUTP2 | OUTP3 | OUTP4 | OUT1 | OUT2 | OUT3 | OUT4Channel identifier to select.
INST OUT1
INST:NSEL 1

Sets the voltage step size used by the VOLT UP and VOLT DOWN commands.

NameTypeValuesDescription
stepreal0.000 - 32.050Voltage step size.
[SOURce:]VOLTage[:LEVel]:STEP[:INCRement]

Resets the OVP state of the selected channel. If an OVP event has occurred before, the reset also erases the message on the display.

Queries the OVP state of the selected channel.

boolean - Returns whether the overvoltage protection has tripped for the selected channel.

Sets the overvoltage protection value of the selected channel.

NameTypeValuesDescription
voltagereal0.100 - 32.500Overvoltage protection level to set.
qualifieroptenumMIN | MAXSets the level to the minimum or maximum allowed value.

Sets the OVP mode for the previously selected channel.

NameTypeValuesDescription
modeenumMEASured | PROTectedOVP mode to use for the selected channel.

:APPLyset / query

Sets the voltage and current value of the selected channel in one step. The combined setting takes approximately 100 ms.

NameTypeValuesDescription
Voltagereal0.000 - 32.050Voltage setting for the selected channel, with DEF, MIN, and MAX accepted as alternatives.
qualifieroptenumDEF | MIN | MAXAlternative keyword for the voltage value.
CurrentrealACurrent setting for the selected channel, with DEF, MIN, and MAX accepted as alternatives.
qualifieroptenumDEF | MIN | MAXAlternative keyword for the current value.
APPL 6,2

:OUTPut:GENeralset / query

Turns on all selected channels simultaneously.

NameTypeValuesDescription
stateenum0 | 1State to apply to the selected channels.
:OUTPut:SELectset / query

Activates the selected channel.

NameTypeValuesDescription
stateenumOFF | ON | 0 | 1State to set for the selected channel.
OUTPut:SELect <State>
:OUTPut[:STATe]set / query

Activates the selected channel and turns on the output.

NameTypeValuesDescription
stateenumOFF | ON | 0 | 1State of the selected channel output.

:FUSE:DELayset / query

Sets a delay time for the fuse to take effect.

NameTypeValuesDescription
delayreal0 - 250Delay time for the fuse to take effect.

Queries whether the fuse has tripped in the selected channel.

enum - Indicates whether the fuse has tripped. 1 means the fuse is tripped; 0 means the fuse is not tripped.
FUSE:TRIPped?
:FUSE[:STATe]set / query

Activates or deactivates the fuse function in the selected channel.

NameTypeValuesDescription
stateenum0 | 1 | OFF | ONSets the fuse function state.

Queries the current value of the selected channel.

numeric (A) - Returns current reading.
INST OUT1
MEAS:CURR?
response: 1.000

:ARBitrary:Clearset / query

Deletes the arbitrary waveform data of the selected channel.

NameTypeValuesDescription
Channelinteger-Selected channel.
ARB:CLEAR 1
:ARBitrary:DATAset / query

Defines the arbitrary voltage, current, and time value points for the selected channel. The dwell time between two arbitrary points is specified from 10 ms to 60 s.

NameTypeValuesDescription
datablock-Voltage, current, and time points for the arbitrary waveform sequence.
ARBitrary:DATA <Data>

Sets the repetition rate for the arbitrary waveform for the selected channel. If the rate is set to 0, the instrument repeats the waveform infinitely.

NameTypeValuesDescription
channelinteger0 - 255Selected channel.

Loads a saved arbitrary waveform from internal memory.

NameTypeValuesDescription
memoryinteger1 - 3Memory location to recall.
ARBitrary:RESTore <Memory>
:ARBitrary:SAVEset / query

Saves the arbitrary waveform data in the internal memory. Up to three waveforms can be saved in internal memory.

NameTypeValuesDescription
Memoryinteger1 - 3Internal memory location to save the waveform data.
:ARBitrary:STARTset / query

Starts the arbitrary sequence in the selected channel.

NameTypeValuesDescription
channelinteger1 - 4Selected channel.
ARBitrary:START <Channel>
:ARBitrary:STOPset / query

Stops the arbitrary sequence in the selected channel.

NameTypeValuesDescription
channelinteger1 - 4Selected channel.
ARBitrary:STOP <Channel>

Transfers the defined arbitrary points to the selected channel.

NameTypeValuesDescription
Channelinteger1 - 4Selected channel.

Queries the error/event queue for the oldest item and removes it from the queue. The response is an error number and a short description of the error; if the queue is empty, the response is 0, "No error".

numeric - Error number and short description of the oldest entry in the error/event queue, or 0, "No error" if the queue is empty.
SYST:ERR?
queries the oldest entry in the error queue
Response: 0, "no error"
:SYSTem:MIXset / query

Enables remote control without locking manual control. The instrument can be controlled in remote and manual modes simultaneously (mixed mode).

SYST:MIX
:SYSTem:REMoteset / query

Sets the system to remote state and locks front-panel manual control. To unlock manual control, press the Remote key.

SYST:REM
:SYSTem:RWLockset / query

Locks the front panel manual control so the instrument can be operated via remote control only. The Remote key is also locked; to return to manual control, use SYSTem:LOCal.

SYST:RWL
SYST:LOC

Queries the SCPI version the instrument's command set complies with.

string - The SCPI version the instrument's command set complies with.
SYST:VERS?