Power Supply · SCPI command reference

Keysight N6952A SCPI commands

The Keysight N6952A power supply is controlled remotely with SCPI commands. TestFlow's instrument library holds 108 commands for it, 42 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 N6952A on a real bench.

Commands
108
Queries
42
Subsystems
16
Models covered
1

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight N6952A and writes the report from the measured results.

Get started

Control the Keysight N6952A 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 Keysight N6952A's VISA address

# Paste the address of your Keysight N6952A (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("OUTP ON")  # Output On
print(inst.query("MEAS:VOLT?"))  # Measure Voltage

inst.close()

Run this on your bench

Describe the test; TestFlow's agent uses this command set to drive your Keysight N6952A and writes the report from the measured results.

Get started

Run a N6952A test without writing code

Describe the test in a sentence, for example “output on on the N6952A, 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

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

Current (CURRent) (25)

CommandWhat it doesArguments
CURR:LIM <current>Set Current Limit. Sets the positive current limit used in voltage priority mode.Number: 0 to 102% of rating, or MIN|MAX (units amperes; negative limit set separately)
CURR:LIM?Query Current Limit. Returns the positive current limit used in voltage priority mode.None
CURR:LIM:NEG <current>Set Negative Current Limit. Sets the negative current limit.Number: -10.2% of rating to 0 (up to -102% with power dissipator), or MIN|MAX (units amperes)
CURR:PROT:STAT <state>Set Over-Current Protection State. Enables or disables over-current protection.Text: 0|OFF|1|ON
CURR:PROT:STAT?Query Over-Current Protection State. Returns 0 or 1 for the over-current protection state.None
CURR:PROT:DEL <seconds>Set Over-Current Protection Delay. Sets the delay before over-current protection becomes active.Number: 0 to 0.255 seconds, or MIN|MAX
CURR:SHAR <state>Set Current Sharing. Enables or disables current sharing between paralleled units.Text: 0|OFF|1|ON
CURR:SHAR?Query Current Sharing. Returns 0 or 1 for the current sharing state.None
CURR <current>Set Current. Sets the output current in amperes (current priority mode).Number: -10.2% to 102% of current rating in A, or MIN/MAX
CURR?Query Current Setting. Returns the programmed output current.None
CURR:LIM:POS <current>Set Positive Current Limit. Sets the positive current limit (voltage priority mode).Number: 0 to current rating in A, or MIN/MAX
CURR:LIM:POS?Query Positive Current Limit. Returns the positive current limit.None
CURR:LIM:NEG? MINQuery Most-Negative Current Limit. Returns the most-negative current limit, which reveals whether a power dissipator is recognized.None
CURR:TRIG <current>Set Triggered Current. Sets the current step level transferred when a step is triggered.Number: -10.2% to 102% of current rating in A, or MIN/MAX
CURR:MODE <mode>Set Current Transient Mode. Sets the current transient mode.Text: FIXed|STEP|LIST|ARB
CURR:PROT:DEL <time>Set Over-Current Protection Delay (CURR:PROT:DEL). Sets the over-current protection delay time.Number: delay in seconds, or MIN/MAX
CURR:PROT:DEL?Query Over-Current Protection Delay. Returns the over-current protection delay.None
CURR:PROT:DEL:STAR <event>Set Over-Current Delay Start. Selects what starts the over-current protection delay timer.Text: SCHange|CCTRans
CURR:PROT:STAT ONEnable Over-Current Protection. Enables OCP so the output turns off when it transitions from CV to current limit.None
CURR:PROT:STAT OFFDisable Over-Current Protection. Disables over-current protection.None
CURR:PROT:DEL:STAR <source>Set OCP Delay Start. Selects what starts the over-current delay timer.Text: SCH (output settings change) or CCTR (any transition into current limit)
CURR:SLEW <rate>Set Current Slew Rate. Sets the rate at which current changes to a new setting.Text: Amperes per second number, or MAX / INF for fastest
CURR:SLEW?Query Current Slew Rate. Returns the current slew rate.None
CURR:SHAR:STAT <state>Set Current Sharing (CURR:SHAR:STAT). Enables or disables current sharing on paralleled units.Text: 0|OFF|1|ON
CURR:SHAR:STAT?Query Current Sharing (CURR:SHAR:STAT?). Returns whether current sharing is enabled.None

Output (OUTPut) (15)

CommandWhat it doesArguments
OUTP ONOutput On. Enables the output.None
OUTP OFFOutput Off. Disables the output.None
OUTP?Output State. Returns 0 if the output is off or 1 if it is on.None
OUTP:PROT:CLEClear Latched Protection. Clears a latched protection condition after its cause is removed.None
OUTP:PROT:MODE <mode>Set Output Protection Mode. Selects the turn-off behavior for protection conditions.Text: HIGHZ|LOWZ
OUTP:COUP <state>Set Output Couple. Enables or disables output on/off coupling between units.Text: 0|OFF|1|ON
OUTP:PROT:USER:SOUR <source>Set User Protection Source. Selects the expression that triggers user-defined protection.Text: EXPR1..EXPR8
OUTP:PROT:USER:STAT <state>Set User Protection State. Enables or disables user-defined protection.Text: 0|OFF|1|ON
OUTP:INH:MODE <mode>Set Inhibit Mode. Sets how the Inhibit input controls the output.Text: LATChing|LIVE|OFF
OUTP:PROT:WDOG ONEnable Output Watchdog. Enables the watchdog that shuts the output down if no remote I/O activity occurs.None
OUTP:PROT:WDOG:DEL <seconds>Set Watchdog Delay. Sets the watchdog timeout period.Number: 1 to 3600 seconds
OUTP:PROT:TEMP:MARG?Get Over-Temperature Margin. Returns the remaining margin to over-temperature protection in degrees C.None
OUTP:REL:LOCK ONLock Output Relays Closed. Leaves the output relays closed at all times, removing relay turn-on and turn-off delays.None
OUTP:DEL:RISE <seconds>Set Output Turn-On Delay. Sets the output turn-on sequence delay.Number: delay in seconds, non-negative
OUTP:DEL:FALL <seconds>Set Output Turn-Off Delay. Sets the output turn-off sequence delay.Number: delay in seconds, non-negative

Voltage (VOLTage) (12)

CommandWhat it doesArguments
VOLT <voltage>Set Voltage. Sets the output voltage in voltage priority mode.Number: 0.1% to 102% of rating, or MIN|MAX (units volts)
VOLT?Query Voltage. Returns the programmed output voltage.None
VOLT:LIM <voltage>Set Voltage Limit. Sets the voltage limit used in current priority mode.Number: 0.1% to 102% of rating, or MIN|MAX (units volts)
VOLT:LIM?Query Voltage Limit. Returns the voltage limit used in current priority mode.None
VOLT:PROT <voltage>Set Over-Voltage Protection. Sets the over-voltage protection level.Number: 0 to 120% of rating, or MIN|MAX (units volts)
VOLT:PROT?Query Over-Voltage Protection. Returns the over-voltage protection level.None
VOLT:TRIG <voltage>Set Triggered Voltage. Sets the voltage step level transferred when a step is triggered.Number: 0 to voltage rating in V, or MIN/MAX
VOLT:MODE <mode>Set Voltage Transient Mode. Sets the voltage transient mode.Text: FIXed|STEP|LIST|ARB
VOLT:SLEW <rate>Set Voltage Slew Rate. Sets the rate at which voltage changes to a new setting.Text: Volts per second number, or MAX / INF for fastest
VOLT:BWID <mode>Set Voltage Bandwidth Mode. Selects the voltage compensation bandwidth mode.Text: LOW,HIGH1
VOLT:MODE STEPSet Transient Mode Step. Enables the voltage step transient function.None
VOLT:SLEW?Query Voltage Slew Rate. Returns the voltage slew rate.None

Measurement (MEASure) (9)

CommandWhat it doesArguments
MEAS:VOLT?Measure Voltage. Takes a measurement and returns the averaged DC output voltage.None
MEAS:CURR?Measure Current. Takes a measurement and returns the averaged DC output current.None
MEAS:POW?Measure Power. Takes a measurement and returns the averaged DC output power.None
MEAS:VOLT:ACDC?Measure RMS Voltage. Returns the total RMS (AC plus DC) output voltage.None
MEAS:CURR:ACDC?Measure RMS Current. Returns the total RMS (AC plus DC) output current.None
MEAS:VOLT:MAX?Measure Maximum Voltage. Returns the maximum digitized voltage value.None
MEAS:VOLT:MIN?Measure Minimum Voltage. Returns the minimum digitized voltage value.None
MEAS:CURR:MAX?Measure Maximum Current. Returns the maximum digitized current value.None
MEAS:CURR:MIN?Measure Minimum Current. Returns the minimum digitized current value.None

Sense (SENSe) (9)

CommandWhat it doesArguments
SENS:ELOG:PER <seconds>Set Elog Integration Period. Sets the Elog integration period.Number: 0.0001024 to 60 s
SENS:SWE:NPLC <cycles>Set Measurement NPLC. Sets the measurement time in power line cycles.Number: Number of power line cycles
SENS:WIND <window>Set Measurement Window. Selects the window function used for average measurements.Text: RECT (rectangular) or HANN (Hanning)
SENS:SWE:TINT <seconds>Set Measurement Time Interval. Sets the time interval between measurement samples.Number: 5.12e-6 to 40000 seconds
SENS:SWE:POIN <points>Set Measurement Points. Sets the number of samples in a measurement acquisition.Number: Sample points, up to 512 K
SENS:AHO:RESReset Amp-Hours. Resets the accumulated amp-hours to zero.None
SENS:WHO:RESReset Watt-Hours. Resets the accumulated watt-hours to zero.None
SENS:FAUL:STAT <state>Set Sense Fault Detection. Enables or disables remote sense lead fault detection.Text: 0|OFF|1|ON
SENS:FAUL:STAT?Query Sense Fault Detection. Returns whether remote sense fault detection is enabled.None

Fetch (FETCh) (6)

CommandWhat it doesArguments
FETC:VOLT?Fetch Voltage. Returns the averaged voltage from the previously acquired data without a new measurement.None
FETC:CURR?Fetch Current. Returns the averaged current from the previously acquired data without a new measurement.None
FETC:ELOG? <records>Fetch Elog Records. Returns and removes the requested Elog records from the buffer.Number: 1 to 1000 records
FETC:POW?Fetch Power. Returns the average power from the most recent acquisition.None
FETC:AHO?Get Amp-Hours. Returns accumulated amp-hours.None
FETC:WHO?Get Watt-Hours. Returns accumulated watt-hours.None

Function (FUNCtion) (4)

CommandWhat it doesArguments
FUNC VOLTSet Voltage Priority Mode. Sets the output regulation to voltage priority.None
FUNC CURRSet Current Priority Mode. Sets the output regulation to current priority.None
FUNC?Query Regulation Mode. Returns CURR or VOLT for the current regulation priority.None
FUNC <mode>Set Priority Mode. Selects voltage or current priority mode; the output turns off and settings revert to reset values.Text: CURR (current priority) or VOLT (voltage priority)

DIG subsystem (4)

CommandWhat it doesArguments
DIG:PIN<n>:FUNC <function>Set Digital Pin Function. Sets the function of a digital port pin.Number: pin 1 to 7; Text: DIO|DINP|EXPR1..EXPR8|FAUL|INH|ONC|OFFC|TINP|TOUT
DIG:PIN<n>:POL <polarity>Set Digital Pin Polarity. Sets the signal polarity of a digital port pin.Number: pin 1 to 7; Text: POS|NEG
DIG:OUTP:DATA <value>Set Digital Output Data. Sets the output data for pins configured as digital I/O.Number: 0 to 127 (bit weights on pins 1 to 7)
DIG:INP:DATA?Read Digital Input Data. Returns the data on pins configured as digital input.None

Trigger (TRIGger) (4)

CommandWhat it doesArguments
TRIG:TRAN:SOUR <source>Set Transient Trigger Source. Selects the trigger source for output transients.Text: BUS|IMMediate|PIN1..PIN7|EXPR1..EXPR8
TRIG:ACQ:SOUR <source>Set Acquisition Trigger Source. Selects the trigger source for measurements and Elog.Text: BUS,CURRent1,EXTernal,PIN1-PIN7,EXPRession1-EXPRession8,TRANsient1,VOLTage1
TRIG:TRANTrigger Transient. Generates a transient trigger on the master unit.None
TRIG:ELOGTrigger Elog. Generates an immediate trigger to start Elog data collection.None

RES subsystem (4)

CommandWhat it doesArguments
RES:STAT ONEnable Output Resistance. Enables output resistance programming.None
RES <ohms>Set Output Resistance (RES). Sets the output resistance level for resistance programming.Number: 0 to 6.4 (ohm)
RES?Query Output Resistance. Returns the programmed output resistance level.None
RES:STAT <state>Set Output Resistance Enable. Enables or disables output resistance programming.Text: 0|OFF|1|ON

Abort (3)

CommandWhat it doesArguments
ABOR:TRANAbort Transient. Cancels triggered transient actions.None
ABOR:ACQAbort Acquisition. Cancels triggered measurements.None
ABOR:ELOGAbort Elog. Stops external data logging.None

System (SYSTem) (2)

CommandWhat it doesArguments
SYST:ERR?Error Query. Reads and clears one error from the error queue.None
SYST:TEMP:AMB?Get Ambient Temperature. Returns the ambient air inlet temperature in degrees C.None

Initiate (INITiate) (2)

CommandWhat it doesArguments
INIT:TRANInitiate Transient. Arms the transient trigger system on the source.None
INIT:ELOGInitiate Elog. Starts the external data logging trigger system.None

ARB subsystem (1)

CommandWhat it doesArguments
ARB:COUN <count>Set Arb Repeat Count. Sets how many times the arbitrary waveform repeats.Number: 1 to 256, or INFinity

Status (STATus) (1)

CommandWhat it doesArguments
STAT:OPER:COND?Query Operation Status. Returns the operation status condition register, used to check trigger and measurement states.None

IEEE 488.2 common commands (7)

CommandWhat it doesArguments
*IDN?Identify. Returns the manufacturer, model, serial number and firmware revision string.None
*RSTReset. Resets the instrument to its *RST values, which leave the output off.None
*CLSClear Status. Clears the event registers, status byte and error queue.None
*ESR?Event Status Register Query. Reads and clears the standard event status register.None
*OPT?Query Installed Options. Returns the installed options.None
*STB?Query Status Byte. Returns the status byte register value.None
*OPC?Query Operation Complete. Returns 1 when all pending operations are complete.None

Where these commands come from

This reference is generated from TestFlow's instrument library, which is drafted from Keysight's programming documentation for the N6952A 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 Keysight's programming manual: check it before you rely on an edge case. Last updated November 17, 2026.

Frequently asked questions

Does the Keysight N6952A support SCPI remote control?

Yes. The Keysight N6952A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 108 SCPI commands for it: 42 queries that read values or state, and 66 settings and actions.

How do I control the Keysight N6952A 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?, OUTP ON and MEAS:VOLT?.

Which command reads a value from the Keysight N6952A?

MEAS:VOLT? (measure voltage). Takes a measurement and returns the averaged DC output voltage. The full list of queries is in the command reference on this page, grouped by subsystem.

Can I automate the Keysight N6952A 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 Keysight N6952A 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.