Vector Signal Generator · SCPI command reference

Keysight N5182A SCPI commands

The Keysight N5182A vector signal generator is controlled remotely with SCPI commands. TestFlow's instrument library holds 304 commands for it, 148 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 N5182A on a real bench.

Commands
304
Queries
148
Subsystems
15
Models covered
1

Run this on your bench

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

Get started

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

# Paste the address of your Keysight N5182A (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")  # RF Output On
print(inst.query(":OUTPut:STATe?"))  # Query RF Output State

inst.close()

Run this on your bench

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

Get started

Run a N5182A test without writing code

Describe the test in a sentence, for example “rf output on on the N5182A, then query rf output state 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

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

Source (SOURce) (192)

CommandWhat it doesArguments
:SOURce:FREQuency:CW <frequency>Set Frequency. Sets the CW carrier frequency.Number: Frequency in Hz with optional unit suffix (Hz, kHz, MHz, GHz); range is model dependent
:SOURce:FREQuency:CW?Query Frequency. Returns the CW carrier frequency.None
:SOURce:POWer:LEVel:IMMediate:AMPLitude <power>Set Power Level. Sets the RF output power level.Number: Power in dBm; the N5183A family documents -130 to +25 dBm, range is model dependent
:SOURce:POWer:LEVel:IMMediate:AMPLitude?Query Power Level. Returns the RF output power level.None
:SOURce:FREQuency:MODE <mode>Set Frequency Mode. Selects the frequency mode for fixed, sweep or list operation.Text: FIXed|CW|SWEep|LIST
:SOURce:FREQuency:MODE?Query Frequency Mode. Returns the current frequency mode.None
:SOURce:FREQuency:STARt <frequency>Set Sweep Start Frequency. Sets the start frequency of a frequency sweep.Number: Frequency in Hz with optional unit suffix; range is model dependent
:SOURce:FREQuency:STARt?Query Sweep Start Frequency. Returns the sweep start frequency.None
:SOURce:FREQuency:STOP <frequency>Set Sweep Stop Frequency. Sets the stop frequency of a frequency sweep.Number: Frequency in Hz with optional unit suffix; range is model dependent
:SOURce:FREQuency:STOP?Query Sweep Stop Frequency. Returns the sweep stop frequency.None
:SOURce:OUTPut:STATe <state>Set RF Output On/Off. Turns the RF output on or off.Text: ON,OFF,1,0
:SOURce:FREQuency:CW <value>Set CW Frequency. Sets the CW carrier frequency.Number
:SOURce:POWer:LEVel:IMMediate:AMPLitude <value>Set Power Level (:SOURCE:POWER:LEVEL:IMMEDIATE…). Sets the RF output power level.Number
:SOURce:MODulation:STATe?Query Modulation State. Returns whether modulation is on or off.None
:SOURce:SWEep:MODE <mode>Set Sweep Mode. Selects the sweep mode.Text: AUTO,MANual
:SOURce:SWEep:MODE?Query Sweep Mode. Returns the current sweep mode.None
:SOURce:FREQuency:STARt <value>Set Start Frequency. Sets the sweep start frequency.Number
:SOURce:FREQuency:STOP <value>Set Stop Frequency. Sets the sweep stop frequency.Number
:SOURce:SWEep:POINts <value>Set Sweep Points. Sets the number of sweep points.Number
:SOURce:SWEep:POINts?Query Sweep Points. Returns the number of sweep points.None
:SOURce:OUTPut:STATe?Query RF Output State (:SOURCE:OUTPUT:STATE?). Returns the RF output state (1 = on, 0 = off).None
:SOURce:POWer:AMPLitude <power>Set RF Power Level. Sets the RF output power level.Number
:SOURce:POWer:AMPLitude?Query RF Power Level. Returns the RF output power level in dBm.None
:SOURce:FREQuency:CW <freq>Set CW Frequency (:SOURCE:FREQUENCY:CW). Sets the CW carrier frequency.Number: Frequency in hertz up to the instrument maximum (see data sheet)
:SOURce:FREQuency:FIXed <freq>Set Fixed Frequency. Sets the fixed frequency.Number: Frequency in hertz up to the instrument maximum (see data sheet)
:SOURce:FREQuency:FIXed?Query Fixed Frequency. Returns the fixed frequency in hertz.None
:SOURce:FREQuency:STARt <freq>Set Start Frequency (:SOURCE:FREQUENCY:START). Sets the sweep start frequency.Number: Frequency in hertz up to the instrument maximum (see data sheet)
:SOURce:FREQuency:STOP <freq>Set Stop Frequency (:SOURCE:FREQUENCY:STOP). Sets the sweep stop frequency.Number: Frequency in hertz up to the instrument maximum (see data sheet)
:SOURce:POWer:LEVel:IMMediate:AMPLitude <level>Set Power Level (:SOURCE:POWER:LEVEL:IMMEDIATE…) 2. Sets the RF output power level in dBm.Number: Power level in dBm within the instrument range (see data sheet)
:SOURce:RADio:TTONe:ARB:STATe ONTwo Tone On. Turns the two-tone waveform generator on (Option 651, 652 or 654 on N5162A/82A).None
:SOURce:RADio:TTONe:ARB:STATe OFFTwo Tone Off. Turns the two-tone waveform generator off.None
:SOURce:RADio:TTONe:ARB:STATe?Query Two Tone State. Returns whether the two-tone waveform generator is on (1) or off (0).None
:SOURce:RADio:TTONe:ARB:FSPacing <spacing>Set Two Tone Frequency Spacing. Sets the frequency spacing between the two tones.Number: Spacing in hertz (Hz to MHz)
:SOURce:RADio:TTONe:ARB:FSPacing?Query Two Tone Frequency Spacing. Returns the two-tone frequency spacing in hertz.None
:SOURce:RADio:AWGN:RT:STATe ONReal-Time AWGN On. Turns real-time AWGN on (Option 403 with 651, 652 or 654).None
:SOURce:RADio:AWGN:RT:STATe OFFReal-Time AWGN Off. Turns real-time AWGN off.None
:SOURce:RADio:AWGN:RT:STATe?Query Real-Time AWGN State. Returns whether real-time AWGN is on (1) or off (0).None
:SOURce:RADio:PHASe:NOISe:STATe ONPhase Noise On. Turns the real-time phase noise impairment on (Option 432).None
:SOURce:RADio:PHASe:NOISe:STATe OFFPhase Noise Off. Turns the real-time phase noise impairment off.None
:SOURce:RADio:PHASe:NOISe:STATe?Query Phase Noise State. Returns whether phase noise impairment is on (1) or off (0).None
:SOURce:POWer:LEVel:IMMediate:OFFSet <value>Set Power Offset. Sets the power offset that simulates a level beyond the RF output.Number
:SOURce:POWer:LEVel:IMMediate:OFFSet?Query Power Offset. Returns the power offset value.None
:SOURce:POWer:MODE <mode>Set Power Mode. Sets the power mode to fixed or swept.Text: FIXed,LIST
:SOURce:POWer:MODE?Query Power Mode. Returns the current power mode.None
:SOURce:POWer:STARt <value>Set Start Power. Sets the first amplitude point of a step sweep.Number
:SOURce:POWer:STARt?Query Start Power. Returns the step sweep start power.None
:SOURce:POWer:STOP <value>Set Stop Power. Sets the last amplitude point of a step sweep.Number
:SOURce:POWer:STOP?Query Stop Power. Returns the step sweep stop power.None
:SOURce:POWer:ALC:STATe <state>Set ALC State. Enables or disables the automatic leveling control circuit.Text: ON,OFF,1,0
:SOURce:POWer:ALC:STATe?Query ALC State. Returns the ALC state.None
:SOURce:POWer:ALC:LEVel <value>Set ALC Level. Sets the ALC level used when attenuator auto mode is on.Number
:SOURce:POWer:ALC:LEVel?Query ALC Level. Returns the ALC level.None
:SOURce:POWer:ALC:SEARch <mode>Set Power Search. Sets power search mode to auto or manual, or runs one power search with ONCE.Text: ON,OFF,1,0,ONCE
:SOURce:POWer:ALC:SEARch?Query Power Search. Returns the power search mode.None
:SOURce:POWer:ATTenuation:AUTO <state>Set Attenuator Auto. Enables ALC control of the attenuator (ON) or holds a user attenuator setting (OFF).Text: ON,OFF,1,0
:SOURce:POWer:ATTenuation:AUTO?Query Attenuator Auto. Returns the attenuator auto state.None
:SOURce:POWer:ATTenuation <value>Set Attenuator Level. Sets the attenuator level.Number
:SOURce:POWer:ATTenuation?Query Attenuator Level. Returns the attenuator level.None
:SOURce:POWer:REFerence:STATe <state>Set Power Reference State. Enables or disables the RF output power reference.Text: ON,OFF,1,0
:SOURce:POWer:REFerence:STATe?Query Power Reference State. Returns the power reference state.None
:SOURce:POWer:PROTection:STATe <state>Set Power Protection. Sets the attenuator to maximum during a power search to protect sensitive devices.Text: ON,OFF,1,0
:SOURce:POWer:PROTection:STATe?Query Power Protection. Returns the power search protection state.None
:SOURce:POWer:USER:MAX <ampl>Set User Power Max. Sets a user maximum output power limit.Number
:SOURce:POWer:USER:MAX?Query User Power Max. Returns the user maximum output power limit.None
:SOURce:PHASe:ADJust <value>Set Phase Adjust. Adjusts the phase of the modulating signal.Number
:SOURce:PHASe:ADJust?Query Phase Adjust. Returns the phase adjustment in radians.None
:SOURce:PHASe:REFerenceSet Phase Reference. Sets the current output phase as the zero reference.None
:SOURce:DM:STATe <state>Set I/Q Modulator State. Enables or disables the internal I/Q modulator (N5162A/82A).Text: ON,OFF,1,0
:SOURce:DM:STATe?Query I/Q Modulator State. Returns the I/Q modulator state.None
:SOURce:DM:SOURce <source>Set I/Q Modulator Source. Selects the I/Q modulator source.Text: EXTernal,INTernal,SUM
:SOURce:DM:SOURce?Query I/Q Modulator Source. Returns the I/Q modulator source.None
:SOURce:CORRection:STATe <state>Set Correction State. Enables or disables user flatness corrections.Text: ON,OFF,1,0
:SOURce:CORRection:STATe?Query Correction State. Returns the user flatness correction state.None
:SOURce:FREQuency:OFFSet <value>Set Frequency Offset. Sets the frequency offset.Number
:SOURce:FREQuency:OFFSet?Query Frequency Offset. Returns the frequency offset value.None
:SOURce:ROSCillator:SOURce:AUTO <state>Set Reference Oscillator Source Auto. Enables automatic switching to an external 10 MHz reference when present.Text: ON,OFF,1,0
:SOURce:ROSCillator:SOURce?Query Reference Oscillator Source. Returns the current reference oscillator source, INT or EXT.None
:SOURce:LIST:TYPE <type>Set Sweep Type. Selects arbitrary list sweep or equally spaced step sweep.Text: LIST,STEP
:SOURce:LIST:TYPE?Query Sweep Type. Returns the sweep type.None
:SOURce:LIST:MODE <mode>Set List Mode. Sets the list or step sweep operating mode.Text: AUTO,MANual
:SOURce:LIST:MODE?Query List Mode. Returns the list or step sweep operating mode.None
:SOURce:LIST:TRIGger:SOURce <source>Set List Trigger Source. Sets the point trigger source for a list or step sweep.Text: BUS,IMMediate,EXTernal,KEY,TIMer,MANual
:SOURce:LIST:TRIGger:SOURce?Query List Trigger Source. Returns the point trigger source.None
:SOURce:LIST:FREQuency <values>Set List Frequencies. Sets the frequency values for the current list sweep points.Text
:SOURce:LIST:FREQuency?Query List Frequencies. Returns the list sweep frequency values.None
:SOURce:LIST:POWer <values>Set List Powers. Sets the amplitude values for the current list sweep points.Text
:SOURce:LIST:POWer?Query List Powers. Returns the list sweep amplitude values.None
:SOURce:LIST:DWELl <values>Set List Dwell. Sets the dwell time for the current list sweep points.Text
:SOURce:LIST:DWELl?Query List Dwell. Returns the list sweep dwell times.None
:SOURce:LIST:DIRection <direction>Set List Direction. Sets the direction of a list or step sweep.Text: UP,DOWN
:SOURce:LIST:DIRection?Query List Direction. Returns the sweep direction.None
:SOURce:LIST:RETRace <state>Set List Retrace. Sets whether the sweep retraces to the first point after completion.Text: ON,OFF,1,0
:SOURce:LIST:RETRace?Query List Retrace. Returns the retrace state.None
:SOURce:LIST:MANual <point>Set List Manual Point. Sets the current sweep point in manual list or step mode.Text
:SOURce:LIST:MANual?Query List Manual Point. Returns the manually selected sweep point.None
:SOURce:LIST:CPOINt?Query List Current Point. Returns the current list sweep point.None
:SOURce:LIST:FREQuency:POINts?Query List Frequency Points. Returns the number of frequency points in the list sweep file.None
:SOURce:SWEep:DWELl <value>Set Step Sweep Dwell. Sets the dwell time for a step sweep point.Number
:SOURce:SWEep:DWELl?Query Step Sweep Dwell. Returns the step sweep dwell time in seconds.None
:SOURce:SWEep:SPACing <spacing>Set Step Sweep Spacing. Sets linear or logarithmic step sweep spacing.Text: LINear,LOGarithmic
:SOURce:SWEep:SPACing?Query Step Sweep Spacing. Returns the step sweep spacing.None
:SOURce:SWEep:CPOINt?Query Step Sweep Current Point. Returns the current sweep point in any sweep mode.None
:SOURce:AM:STATe <state>Set AM State. Enables or disables amplitude modulation for the selected path.Text: ON|OFF|1|0
:SOURce:AM:STATe?Query AM State. Returns the AM state.None
:SOURce:AM:SOURce <source>Set AM Source. Sets the source for amplitude modulation.Text: INT|EXT
:SOURce:AM:SOURce?Query AM Source. Returns the AM source.None
:SOURce:AM:DEPTh:LINear <depth>Set AM Depth Percent. Sets the linear amplitude modulation depth in percent.Number
:SOURce:AM:DEPTh:LINear?Query AM Depth Percent. Returns the linear AM depth in percent.None
:SOURce:AM:INTernal:FREQuency <rate>Set AM Internal Rate. Sets the internal amplitude modulation rate.Number: 0.1 Hz to 20 MHz in hertz
:SOURce:AM:INTernal:FREQuency?Query AM Internal Rate. Returns the internal AM rate.None
:SOURce:FM:STATe <state>Set FM State. Enables or disables frequency modulation for the selected path.Text: ON|OFF|1|0
:SOURce:FM:STATe?Query FM State. Returns the FM state.None
:SOURce:FM:SOURce <source>Set FM Source. Sets the source for frequency modulation.Text: INT|EXT
:SOURce:FM:SOURce?Query FM Source. Returns the FM source.None
:SOURce:FM:DEViation <deviation>Set FM Deviation. Sets the frequency modulation deviation.Number
:SOURce:FM:DEViation?Query FM Deviation. Returns the FM deviation.None
:SOURce:FM:INTernal:FREQuency <rate>Set FM Internal Rate. Sets the internal frequency modulation rate.Number: 0.1 Hz to 2 MHz in hertz
:SOURce:FM:INTernal:FREQuency?Query FM Internal Rate. Returns the internal FM rate.None
:SOURce:PM:STATe <state>Set PM State. Enables or disables phase modulation for the selected path.Text: ON|OFF|1|0
:SOURce:PM:STATe?Query PM State. Returns the PM state.None
:SOURce:PM:SOURce <source>Set PM Source. Sets the source for phase modulation.Text: INT|EXT
:SOURce:PM:SOURce?Query PM Source. Returns the PM source.None
:SOURce:PM:DEViation <deviation>Set PM Deviation. Sets the phase modulation deviation.Number
:SOURce:PM:DEViation?Query PM Deviation. Returns the PM deviation in radians.None
:SOURce:RADio:DMODulation:ARB:STATe <state>Set Dig Mod State. Enables or disables the digital modulation capability.Text: ON,OFF,1,0
:SOURce:RADio:DMODulation:ARB:STATe?Query Dig Mod State. Returns the digital modulation on/off state.None
:SOURce:RADio:DMODulation:ARB:SRATe <val>Set Dig Mod Symbol Rate. Sets the transmission symbol rate in symbols per second.Number
:SOURce:RADio:DMODulation:ARB:SRATe?Query Dig Mod Symbol Rate. Returns the transmission symbol rate.None
:SOURce:RADio:DMODulation:ARB:SCLock:RATE <val>Set Dig Mod Sample Clock Rate. Sets the sample clock rate for the digital modulation waveform.Number
:SOURce:RADio:DMODulation:ARB:SCLock:RATE?Query Dig Mod Sample Clock Rate. Returns the sample clock rate.None
:SOURce:RADio:DMODulation:ARB:TRIGger:TYPE <type>Set Dig Mod Trigger Type. Sets the trigger mode that controls waveform playback.Text: CONTinuous,SINGle,GATE
:SOURce:RADio:DMODulation:ARB:TRIGger:TYPE?Query Dig Mod Trigger Type. Returns the trigger mode.None
:SOURce:RADio:DMODulation:ARB:TRIGger:SOURce <source>Set Dig Mod Trigger Source. Sets the trigger source for the digital modulation waveform.Text: KEY,EXT,BUS
:SOURce:RADio:DMODulation:ARB:TRIGger:SOURce?Query Dig Mod Trigger Source. Returns the trigger source.None
:SOURce:RADio:DMODulation:ARB:RETRigger <mode>Set Dig Mod Retrigger Mode. Sets how a trigger received during playback is handled.Text: ON,OFF,IMMediate
:SOURce:RADio:DMODulation:ARB:RETRigger?Query Dig Mod Retrigger Mode. Returns the retrigger mode.None
:SOURce:RADio:DMODulation:ARB:REFerence:SOURce <source>Set Dig Mod Reference Source. Selects the internal or external reference for the waveform clock.Text: INTernal,EXTernal
:SOURce:RADio:DMODulation:ARB:REFerence:SOURce?Query Dig Mod Reference Source. Returns the reference source.None
:SOURce:RADio:ARB:STATe <state>Set ARB State. Enables or disables the arbitrary waveform generator function.Text: ON,OFF,1,0
:SOURce:RADio:ARB:STATe?Query ARB State. Returns the ARB on/off state.None
:SOURce:RADio:ARB:WAVeform "<file_name>"Set ARB Waveform. Selects a waveform file or sequence for the dual ARB player.Text
:SOURce:RADio:ARB:WAVeform?Query ARB Waveform. Returns the selected waveform file or sequence.None
:SOURce:RADio:ARB:RSCaling <value>Set ARB Runtime Scaling. Sets the runtime scaling applied to the playing waveform.Number
:SOURce:RADio:ARB:RSCaling?Query ARB Runtime Scaling. Returns the runtime scaling value.None
:SOURce:RADio:ARB:SCLock:RATE <value>Set ARB Sample Clock Rate. Sets the sample clock rate for the dual ARB format.Number
:SOURce:RADio:ARB:SCLock:RATE?Query ARB Sample Clock Rate. Returns the dual ARB sample clock rate.None
:SOURce:RADio:ARB:BASeband:FREQuency:OFFSet <value>Set ARB Baseband Frequency Offset. Offsets the baseband frequency relative to the carrier.Number
:SOURce:RADio:ARB:BASeband:FREQuency:OFFSet?Query ARB Baseband Frequency Offset. Returns the baseband frequency offset.None
:SOURce:RADio:ARB:FILTer:TYPE <type>Set ARB Filter Type. Specifies the real-time modulation filter type.Text
:SOURce:RADio:ARB:FILTer:TYPE?Query ARB Filter Type. Returns the real-time modulation filter type.None
:SOURce:RADio:ARB:FILTer:ALPHa <value>Set ARB Filter Alpha. Sets the Nyquist or Root Nyquist filter alpha value.Number
:SOURce:RADio:ARB:FILTer:ALPHa?Query ARB Filter Alpha. Returns the filter alpha value.None
:SOURce:RADio:ARB:FILTer:STATe <state>Set ARB Real-Time Filter State. Enables or disables the real-time modulation filter.Text: ON,OFF,1,0
:SOURce:RADio:ARB:FILTer:STATe?Query ARB Real-Time Filter State. Returns the real-time modulation filter state.None
:SOURce:RADio:ARB:IQ:MODulation:ATTen <value>Set ARB Modulator Attenuation. Sets the attenuation of the I/Q signals through the RF path.Number
:SOURce:RADio:ARB:IQ:MODulation:ATTen?Query ARB Modulator Attenuation. Returns the modulator attenuation.None
:SOURce:RADio:ARB:TRIGger:TYPE:GATE <polarity>Set ARB Gate Polarity. Selects the active gate state for gated triggering.Text: LOW,HIGH
:SOURce:RADio:ARB:TRIGger:TYPE:GATE?Query ARB Gate Polarity. Returns the gate polarity.None
:SOURce:RADio:ARB:TRIGger:SOURce <source>Set ARB Trigger Source. Sets the trigger source for the dual ARB player.Text: KEY,EXT,BUS
:SOURce:RADio:ARB:TRIGger:SOURce?Query ARB Trigger Source. Returns the dual ARB trigger source.None
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:SLOPe <slope>Set ARB External Trigger Slope. Sets the external trigger polarity for continuous and single modes.Text: POSitive,NEGative
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:SLOPe?Query ARB External Trigger Slope. Returns the external trigger polarity.None
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:DELay <value>Set ARB External Trigger Delay. Sets the delay between an external trigger and the waveform response.Number
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:DELay?Query ARB External Trigger Delay. Returns the external trigger delay.None
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:DELay:STATe <state>Set ARB External Trigger Delay State. Enables or disables the external trigger delay.Text: ON,OFF,1,0
:SOURce:RADio:ARB:TRIGger:SOURce:EXTernal:DELay:STATe?Query ARB External Trigger Delay State. Returns the external trigger delay state.None
:SOURce:RADio:ARB:RETRigger <mode>Set ARB Retrigger Mode. Sets how a trigger received during playback is handled.Text: ON,OFF,1,0,IMMediate
:SOURce:RADio:ARB:RETRigger?Query ARB Retrigger Mode. Returns the ARB retrigger mode.None
:SOURce:RADio:ARB:TRIGger:TYPE:SADVance:TYPE <type>Set ARB Segment Advance Trigger. Sets the response to triggers in segment advance mode.Text: SINGle,CONTinuous
:SOURce:RADio:ARB:TRIGger:TYPE:SADVance:TYPE?Query ARB Segment Advance Trigger. Returns the segment advance trigger response.None
:SOURce:RADio:ARB:TRIGger:TYPE:CONTinuous:TYPE <response>Set ARB Continuous Trigger Response. Sets the waveform response to a trigger in continuous mode.Text: FREE,TRIGger,RESet
:SOURce:RADio:ARB:TRIGger:TYPE:CONTinuous:TYPE?Query ARB Continuous Trigger Response. Returns the continuous trigger response.None
:SOURce:RADio:ARB:NOISe:STATe <state>Set ARB Real-Time AWGN State. Enables or disables real-time additive white gaussian noise.Text: ON,OFF,1,0
:SOURce:RADio:ARB:NOISe:STATe?Query ARB Real-Time AWGN State. Returns the AWGN on/off state.None
:SOURce:RADio:ARB:NOISe:CN <value>Set ARB Carrier to Noise Ratio. Sets the carrier to noise ratio in dB.Number
:SOURce:RADio:ARB:NOISe:CN?Query ARB Carrier to Noise Ratio. Returns the carrier to noise ratio.None
:SOURce:RADio:ARB:PHASe:NOISe:STATe <state>Set ARB Phase Noise State. Turns the phase noise impairment on or off.Text: ON,OFF,1,0
:SOURce:RADio:ARB:PHASe:NOISe:STATe?Query ARB Phase Noise State. Returns the phase noise impairment state.None
:SOURce:RADio:ARB:MBSync <mode>Set ARB Multiple BBG Sync Mode. Sets the multiple baseband generator synchronization role.Text: OFF,MASTer,SLAVe
:SOURce:RADio:ARB:MBSync?Query ARB Multiple BBG Sync Mode. Returns the multiple baseband synchronization role.None
:SOURce:RADio:LARB:STATe <state>Set Waveform Sweep State. Enables or disables the waveform sweep function in list sweep mode.Text: ON,OFF,1,0
:SOURce:RADio:LARB:STATe?Query Waveform Sweep State. Returns the waveform sweep state.None
:SOURce:RADio:MTONe:ARB:STATe <state>Set Multitone State. Enables or disables the multitone waveform generator function.Text: ON,OFF,1,0
:SOURce:RADio:MTONe:ARB:STATe?Query Multitone State. Returns the multitone waveform state.None
:SOURce:RADio:MTONe:ARB:SETup:TABLe:FSPacing <freq_spacing>Set Multitone Frequency Spacing. Sets the frequency spacing between multitone tones.Number
:SOURce:RADio:MTONe:ARB:SETup:TABLe:FSPacing?Query Multitone Frequency Spacing. Returns the multitone frequency spacing.None
:SOURce:RADio:MTONe:ARB:SETup:TABLe:NTONes <num_tones>Set Multitone Number of Tones. Defines the number of tones in the multitone waveform.Number
:SOURce:RADio:MTONe:ARB:SETup:TABLe:NTONes?Query Multitone Number of Tones. Returns the number of multitone tones.None
:SOURce:RADio:MTONe:ARB:ALIGnment <alignment>Set Multitone Alignment. Aligns the multitones left, center or right of the carrier.Text: LEFT,CENTer,RIGHt
:SOURce:RADio:MTONe:ARB:ALIGnment?Query Multitone Alignment. Returns the multitone alignment.None
:SOURce:RADio:MTONe:ARB:BASeband:FREQuency:OFFSet <val>Set Multitone Baseband Frequency Offset. Offsets the multitone baseband frequency relative to the carrier.Number
:SOURce:RADio:MTONe:ARB:BASeband:FREQuency:OFFSet?Query Multitone Baseband Frequency Offset. Returns the multitone baseband frequency offset.None

PULM subsystem (19)

CommandWhat it doesArguments
:PULM:STATe <state>Set Pulse Modulation State. Enables or disables pulse modulation for the selected path.Text: ON|OFF|1|0
:PULM:STATe?Query Pulse Modulation State. Returns the pulse modulation state.None
:PULM:SOURce <source>Set Pulse Source. Sets the pulse modulation source to internal or external.Text: INTernal|EXTernal
:PULM:SOURce?Query Pulse Source. Returns the pulse modulation source.None
:PULM:SOURce:INTernal <type>Set Internal Pulse Type. Selects the internally generated pulse modulation input.Text: SQUare|FRUN|TRIGgered|ADOublet|DOUBlet|GATEd|PTRain
:PULM:SOURce:INTernal?Query Internal Pulse Type. Returns the internal pulse modulation type.None
:PULM:INTernal:PERiod <period>Set Pulse Period. Sets the internal pulse period.Number: 30 ns to 42 s
:PULM:INTernal:PERiod?Query Pulse Period. Returns the internal pulse period.None
:PULM:INTernal:PWIDth <width>Set Pulse Width. Sets the internal pulse width.Number: 20 ns to (pulse period - 10 ns)
:PULM:INTernal:PWIDth?Query Pulse Width. Returns the internal pulse width.None
:PULM:INTernal:DELay <delay>Set Pulse Delay. Sets the internal pulse delay.Number: 0 to (pulse period - 20 ns) in seconds
:PULM:INTernal:DELay?Query Pulse Delay. Returns the internal pulse delay.None
:PULM:INTernal:FREQuency <frequency>Set Square Pulse Rate. Sets the pulse rate of the internal square wave.Number: 0.1 Hz to 10 MHz
:PULM:INTernal:FREQuency?Query Square Pulse Rate. Returns the internal square wave pulse rate.None
:PULM:EXTernal:POLarity <polarity>Set External Pulse Polarity. Selects the polarity of the TTL input at TRIG IN.Text: NORMal|INVerted
:PULM:EXTernal:POLarity?Query External Pulse Polarity. Returns the external pulse polarity.None
:PULM:INTernal:TRAin:TRIGger <mode>Set Pulse Train Trigger Mode. Sets free run or triggered playback of the pulse train.Text: FRUN|TRIGgered
:PULM:INTernal:TRAin:TRIGger?Query Pulse Train Trigger Mode. Returns the pulse train trigger mode.None
:PULM:INTernal:TRAin:TRIGger:IMMediateRun Pulse Train Once. Runs the pulse train once if it is idle.None

RAD subsystem (14)

CommandWhat it doesArguments
:RADio:DMODulation:ARB:MODulation:TYPE <type>Set Dual ARB Modulation Type. Sets the digital modulation type for the ARB custom personality (needs option 651/652/654).Text: BPSK,QPSK,OQPSK,PSK8,PSK16,D8PSK,EDGE,MSK,FSK2,FSK4,FSK8,FSK16,C4FM,QAM16,QAM64,QAM256
:RADio:DMODulation:ARB:MODulation:TYPE?Query Dual ARB Modulation Type. Returns the ARB custom modulation type.None
:RADio:DMODulation:ARB:FILTer <filter>Set Dual ARB Filter. Sets the pre-modulation filter type for the ARB custom personality.Text: RNYQuist|NYQuist|GAUSsian|RECTangle|IS95|EDGE|EWIDe|EHSR|WCDMa|AC4Fm
:RADio:DMODulation:ARB:FILTer?Query Dual ARB Filter. Returns the pre-modulation filter type.None
:RADio:DMODulation:ARB:FILTer:ALPHa <alpha>Set Dual ARB Filter Alpha. Sets the Nyquist or Root Nyquist filter alpha.Number: 0.000 to 1.000
:RADio:DMODulation:ARB:FILTer:BBT <bbt>Set Dual ARB Filter BbT. Sets the Gaussian filter bandwidth-bit-time parameter.Number: 0.100 to 1.000
:RADio:DMODulation:ARB:NOISe:STATe <state>Set Dual ARB Noise State. Enables or disables real-time AWGN on the ARB waveform (needs option 403/432).Text: ON,OFF,1,0
:RADio:DMODulation:ARB:NOISe:STATe?Query Dual ARB Noise State. Returns the real-time AWGN state.None
:RADio:DMODulation:ARB:NOISe:CN <ratio>Set Dual ARB Carrier To Noise. Sets the carrier to noise ratio in dB for real-time AWGN.Number: -100 to 100 dB
:RADio:DMODulation:ARB:NOISe:CN?Query Dual ARB Carrier To Noise. Returns the carrier to noise ratio in dB.None
:RADio:DMODulation:ARB:PHASe:NOISe:STATe <state>Set Dual ARB Phase Noise State. Turns the phase noise impairment on or off (needs option 432).Text: ON,OFF,1,0
:RADio:DMODulation:ARB:PHASe:NOISe:STATe?Query Dual ARB Phase Noise State. Returns the phase noise impairment state.None
:RADio:DMODulation:ARB:BASeband:FREQuency:OFFSet <offset>Set Dual ARB Baseband Frequency Offset. Offsets the baseband frequency relative to the carrier (needs option 651/652/654).Number: -5.0E7 to +5.0E7 Hz
:RADio:DMODulation:ARB:BASeband:FREQuency:OFFSet?Query Dual ARB Baseband Frequency Offset. Returns the baseband frequency offset in hertz.None

System (SYSTem) (13)

CommandWhat it doesArguments
:SYSTem:PRESetPreset Instrument. Presets the instrument to its default settings.None
:SYSTem:ERRor:NEXT?Query Next Error. Returns the next error message from the error queue.None
:SYSTem:ERRor?Query Next Error (:SYSTEM:ERROR?). Returns the next error from the error queue.None
:SYSTem:PRESet:ALLPreset All To Factory Defaults. Sets all instrument states to factory default settings, including states not affected by normal preset.None
:SYSTem:PRESet:USERPreset To User State. Presets the signal generator to the user saved state.None
:SYSTem:ERRor:CODE:NEXt?Query Next Error Code. Returns the next error number from the SCPI error queue, or +0 if none.None
:SYSTem:CAPability?Query Capabilities. Returns the signal generator capability specifiers.None
:SYSTem:VERSion?Query SCPI Version. Returns the SCPI version the instrument complies with.None
:SYSTem:PMETer1:STATe <state>Set Power Meter State. Enables or disables power meter measurements for channel A.Text: ON,OFF,1,0
:SYSTem:PMETer1:STATe?Query Power Meter State. Returns the power meter measurement state for channel A.None
:SYSTem:PMETer1:MEASure?Measure External Power. Starts a power meter measurement on channel A and returns the result.None
:SYSTem:PMETer1:UNIT:POWer <unit>Set Power Meter Units. Selects the power meter channel A measurement units.Text: DBM|W
:SYSTem:PMETer1:UNIT:POWer?Query Power Meter Units. Returns the power meter channel A units.None

Output (OUTPut) (13)

CommandWhat it doesArguments
:OUTPut:STATe ONRF Output On. Turns the RF output on.None
:OUTPut:STATe OFFRF Output Off. Turns the RF output off.None
:OUTPut:STATe?Query RF Output State. Returns 1 if the RF output is on, 0 if it is off.None
:OUTPut:MODulation:STATe ONModulation Output On. Enables the modulation output.None
:OUTPut:MODulation:STATe OFFModulation Output Off. Disables the modulation output.None
:OUTPut:MODulation:STATe?Query Modulation Output State. Returns 1 if the modulation output is enabled, 0 if not.None
:OUTPut:PROTection:STATe?Query Output Protection State. Returns the output protection state.None
:OUTPut:MODulation:STATe <state>Set Modulation State. Turns all modulation on or off.Text: ON,OFF,1,0
:OUTPut:PROTection:STATe <state>Set Reverse Power Protection. Enables or disables the reverse power protection circuit on the RF output.Text: ON|OFF|1|0
:OUTPut:BLANking:AUTO <state>Set Output Blanking Auto. Turns the RF output off during frequency band changes when on.Text: ON|OFF|1|0
:OUTPut:BLANking:AUTO?Query Output Blanking Auto. Returns the auto band-change output blanking state.None
:OUTPut:BLANking:STATe <state>Set Output Blanking State. Enables or disables RF output blanking during frequency changes.Text: ON|OFF|1|0
:OUTPut:BLANking:STATe?Query Output Blanking State. Returns the RF output blanking state during frequency changes.None

Status (STATus) (13)

CommandWhat it doesArguments
:STATus:OPERation:ENABle <value>Set Operation Status Enable. Sets which Standard Operation Event Register bits set the operation summary bit.Number: 0 to 32767 (sum of bit values)
:STATus:OPERation:ENABle?Query Operation Status Enable. Returns the Standard Operation enable register value.None
:STATus:OPERation:CONDition?Query Operation Condition. Returns the Standard Operation Condition Register sum, updated continuously.None
:STATus:OPERation:EVENt?Query Operation Event. Returns and clears the Standard Operation Event Register sum.None
:STATus:QUEStionable:ENABle <value>Set Questionable Status Enable. Sets which Data Questionable Event Register bits set the questionable summary bit.Number: 0 to 32767 (sum of bit values)
:STATus:QUEStionable:ENABle?Query Questionable Status Enable. Returns the Data Questionable enable register value.None
:STATus:QUEStionable:CONDition?Query Questionable Condition. Returns the Data Questionable Condition Register sum.None
:STATus:QUEStionable:EVENt?Query Questionable Event. Returns and clears the Data Questionable Event Register sum.None
:STATus:QUEStionable:POWer:CONDition?Query Questionable Power Condition. Returns the Data Questionable Power Condition Register sum, e.g. unleveled RF output.None
:STATus:QUEStionable:POWer:EVENt?Query Questionable Power Event. Returns and clears the Data Questionable Power Event Register sum.None
:STATus:QUEStionable:FREQuency:CONDition?Query Questionable Frequency Condition. Returns the Data Questionable Frequency Condition Register sum, e.g. reference unlocked.None
:STATus:QUEStionable:MODulation:CONDition?Query Questionable Modulation Condition. Returns the Data Questionable Modulation Condition Register sum.None
:STATus:PRESetPreset Status Registers. Presets all status transition filters and enable registers.None

Trigger (TRIGger) (9)

CommandWhat it doesArguments
:TRIGger:SEQuence:SOURce <source>Set Sweep Trigger Source. Sets the trigger source for a list or step sweep.Text: BUS,IMMediate,EXTernal,KEY,TIMer
:TRIGger:SEQuence:SOURce?Query Sweep Trigger Source. Returns the sweep trigger source.None
:TRIGger:SEQuence:SLOPe <slope>Set Trigger In Slope. Sets the polarity of the external trigger signal at TRIG IN.Text: POSitive,NEGative
:TRIGger:SEQuence:SLOPe?Query Trigger In Slope. Returns the TRIG IN trigger polarity.None
:TRIGger:SEQuence:TIMer <period>Set Sweep Trigger Timer Period. Sets the period of the timer trigger.Number
:TRIGger:SEQuence:TIMer?Query Sweep Trigger Timer Period. Returns the timer trigger period.None
:TRIGger:SEQuence:IMMediateImmediate Sweep Trigger. Starts an armed list or step sweep without waiting for the selected trigger.None
:TRIGger:OUTPut:POLarity <polarity>Set Trigger Out Polarity. Sets the TTL level at the TRIGGER OUT connector.Text: POSitive|NEGative
:TRIGger:OUTPut:POLarity?Query Trigger Out Polarity. Returns the TRIGGER OUT polarity.None

ROUT subsystem (4)

CommandWhat it doesArguments
:ROUTe:CONNectors:SOUT <signal>Set Sweep Out Routing. Selects the signal routed to the rear panel Sweep Out connector.Text: SWEep|SETTled|PVIDeo|SW8757
:ROUTe:CONNectors:SOUT?Query Sweep Out Routing. Returns the signal routed to Sweep Out.None
:ROUTe:CONNectors:TOUT <signal>Set Trig Out Routing. Selects the signal routed to the rear panel Trig Out connector.Text: SWEep|SETTled|PVIDeo|PSYNc|M1|M2|M3|M4
:ROUTe:CONNectors:TOUT?Query Trig Out Routing. Returns the signal routed to Trig Out.None

FAST subsystem (3)

CommandWhat it doesArguments
:FAST:FP <freq mHz>,<power mdB>Set Fast Frequency and Power. Sets frequency and power with fast SCPI switching, without suffixes.Number; Number
:FAST:FREQuency <freq mHz>Set Fast Frequency. Sets the frequency with fast SCPI switching.Number
:FAST:POWer <power mdB>Set Fast Power. Sets the power level with fast SCPI switching.Number

Initiate (INITiate) (3)

CommandWhat it doesArguments
:INITiate:CONTinuous:ALL <state>Set Sweep Continuous. Selects continuous (ON) or single (OFF) list or step sweep.Text: ON,OFF,1,0
:INITiate:CONTinuous:ALL?Query Sweep Continuous. Returns whether sweep is continuous (1) or single (0).None
:INITiate:IMMediate:ALLStart Single Sweep. Arms or arms and starts a single list or step sweep depending on trigger source.None

UNIT subsystem (2)

CommandWhat it doesArguments
:UNIT:POWer <unit>Set Power Units. Sets the amplitude unit of measure.Text: DBM|DBUV|DBUVEMF|V|VEMF|DB
:UNIT:POWer?Query Power Units. Returns the amplitude unit of measure.None

DIAG subsystem (2)

CommandWhat it doesArguments
:DIAGnostic:CPU:INFormation:REVision?Query Firmware Revision. Returns boot ROM revision and main firmware revision, date and time.None
:DIAGnostic:CPU:INFormation:OTIMe?Query Operating Hours. Returns the cumulative hours the signal generator has been on.None

Abort (1)

CommandWhat it doesArguments
:ABORtAbort Sweep. Aborts the list or step sweep in progress.None

TSW subsystem (1)

CommandWhat it doesArguments
:TSWeepSingle Sweep From Source. Aborts the current sweep and arms or starts a single list sweep based on trigger type.None

IEEE 488.2 common commands (15)

CommandWhat it doesArguments
*IDN?Identify Instrument. Returns the instrument identification string.None
*RSTReset Instrument. Resets the instrument to its factory-defined state.None
*CLSClear Status. Clears the status byte and the event registers.None
*OPC?Operation Complete Query. Returns 1 when all pending operations are complete.None
*WAIWait To Continue. Holds further commands until pending operations complete.None
*STB?Status Byte Query. Returns the status byte register value.None
*ESR?Standard Event Status Query. Returns the standard event status register value.None
*OPCSet Operation Complete. Sets the operation complete bit when pending operations finish.None
*ESE <data>Set Standard Event Status Enable. Sets the Standard Event Status Enable Register mask.Number: 0 to 255
*ESE?Query Standard Event Status Enable. Returns the Standard Event Status Enable Register value.None
*SRE <data>Set Service Request Enable. Sets the Service Request Enable Register mask.Number: 0 to 255 (bit 6 ignored)
*SRE?Query Service Request Enable. Returns the Service Request Enable Register value.None
*TST?Run Self Test. Runs the internal self-test; returns 0 if all tests pass, 1 if any fail.None
*TRGTrigger Device. Triggers the device when BUS is the selected trigger source.None
*OPT?Query Options. Returns a comma separated list of installed options.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 N5182A 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 12, 2026.

Frequently asked questions

Does the Keysight N5182A support SCPI remote control?

Yes. The Keysight N5182A accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 304 SCPI commands for it: 148 queries that read values or state, and 156 settings and actions.

How do I control the Keysight N5182A 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 :OUTPut:STATe?.

Which command reads a value from the Keysight N5182A?

:OUTPut:STATe? (query rf output state). Returns 1 if the RF output is on, 0 if it is off. The full list of queries is in the command reference on this page, grouped by subsystem.

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