Spectrum Analyzer Commands

Controls the Spectrum Analyzer Application.

SA Application - SA Setup tab

SENSe:SA:BANDwidth:[RESolution]

SENSe:SA:BANDwidth:[RESolution]:AUTO

SENSe:SA:BANDwidth:RESolution MIN

SENSe:SA:BANDwidth:RESolution MAX

SENSe:SA:BANDwidth:VIDeo

SENSe:SA:BANDwidth:VIDeo:AUTO

SENSe:SA:BANDwidth:VIDeo MIN

SENSe:SA:BANDwidth:VIDeo MAX

SENSe:SA:DETector:FUNCtion

SENSe:SA:DETector:BYPass:[STATe]

SENSe:SA:BANDwidth:VIDEO:AVERage:TYPE

SENSe:SA:BANDwidth:VIDEO:AVERage:COUNt?

 

Source Setup tab

SENSe:SA:SOURce:SWEep:TYPE

SENSe:SA:SOURce:FREQuency:STARt

SENSe:SA:SOURce:FREQuency:STOP

SENSe:SA:SOURce:FREQuency:CW

SENSe:SA:SOURce:POW:SWEep:POINt:COUNt

SENSe:SA:SOURce:POW:SWEep:REPeat:COUNt

SENSe:SA:SOURce:POWer:STARt

SENSe:SA:SOURce:POWer:STOP

SENSe:SA:SOURce:POWer[:VALue]

SENSe:SA:SOURce:SWEep:FIRst[:DIMension]

SENSe:SA:SOURce:SWEep:POINt:COUNt

SENSe:SA:SOURce:SWEep:REPeat:COUNt

 

Coherence Setup tab

SENSe:SA:COHerence:MULTitone[:STATe]

SENSe:SA:COHerence:MULTitone:DATA

SENSe:SA:COHerence:MULTitone:SPACing

SENSe:SA:COHerence:MULTitone:PERiod

SENSe:SA:COHerence:MULTitone:REFerence

SENSe:SA:COHerence:MULTitone:HREJect

SENSe:SA:COHerence:MULTitone:NYQReject

SENSe:SA:COHerence:VECTor:AVERage[:STATe]

SENSe:SA:COHerence:VECTor:AVERage:VALue

SENSe:SA:COHerence:MULTitone:VALid

 

Advanced Setup tab

SENSe:SA:BANDwidth:SHAPe

SENSe:SA:IMAGe:REJect

SENSe:SA:IMAGe:STRENgth

SENSe:SA:BANDwidth:VIDeo:RATio

SENSe:SA:FREQuency:SPAN:BANDwidth[:RESolution]:RATio

SENSe:SA:BANDwidth:SEARch:OCCupied:MIN

SENSe:SA:SOURce:DC:SWEep[:STATe]

SENSe:SA:SOURce:DC:SWEep:POINt

SENSe:SA:FREQuency:TUNE:IMMediate

SENSe:SA:SOURce:DC:SWEep:FIRst[:DIMension]

 

IF Setup tab

SENSe:SA:ADC:FILTer

SENSe:SA:ADC:FILTer:AUTO

SENSe:SA:DFT:BANDwidth:AUTO

SENSe:SA:DFT:BANDwidth:NARRow:MIN

SENSe:SA:DFT:BANDwidth:NARRow:MAX

SENSe:SA:DFT:BANDwidth:WIDE:MIN

SENSe:SA:DFT:BANDwidth:WIDE:MAX

 

Trigger Setup tab

SENSe:SA:TRIGer:LEVel[:STATe]

SENSe:SA:TRIGer:LEVel:VALue

SENSe:SA:TRIGer:PERCounter[:STATe]

SENSe:SA:TRIGer:PERCounter:VALue

 

Processing Setup tab

SENSe:SA:DFT:TYPE

SENSe:SA:TRACe:IMAGe[:STATe]

SENSe:SA:ADC:ACQTime?

SENSe:SA:LO:COUNt?

SENSe:SA:SPAN:BINS:COUNt?

SENSe:SA:DFT:RESolution?

SENSe:SA:DFT:RECord:SIZE?

SENSe:SA:ADC:RECord:SIZE:VALue?

 

ADC & LO Setup tab

SENSe:SA:ADC:SAMPle:RATE

SENSe:SA:ADC:SAMPle:RATE:AUTO

SENSe:SA:ADC:SAMPle:DECimation:FIR

SENSe:SA:ADC:DITHer:[STATe]

SENSe:SA:ADC:RECord:SIZE:VALue?

SENSe:SA:ADC:RECord:SIZE:MAX?

SENSe:SA:ADC:RECord:SIZE:MIN?

SENSe:SA:ADC:RECord:SIZE:FORCe[:STATe]

SENSe:SA:ADC:RECord:SIZE:FORCe:VALue

SENSe:SA:ADC:STACking:VALue

SENSe:SA:ADC:STACking:STATe

SENSe:SA:ADC:MREC:SIZE

SENSe:SA:ADC:MREC:PERiod

SENSe:SA:ADC:MREC[:STATe]

SENSe:SA:LO:RANDom:[STATe]

SENSe:SA:LO:FREQ:FORCe

SENSe:SA:LO:FREQ:VALue

 

Data tab

SENSe:SA:DATA:TYPE

SENSe:SA:DATA:STARt?

SENSe:SA:DATA:RECeivers?

SENSe:SA:DATA:RECeivers:LIST

SENSe:SA:DATA:RECeivers:COUNt?

SENSe:SA:DATA:BINs:COUNt?

SENSe:SA:DATA:SIZE?

SENSe:SA:DATA:SIZE:BIN?

SENSe:SA:DATA:SIZE:LOW?

SENSe:SA:DATA:SIZE:HIGH?

SENSe:SA:DATA:FILE:BINary[:STATe]

SENSe:SA:DATA:FILE:TEXT:MARKers[:STATe]

SENSe:SA:DATA:FILE:TEXT[:STATe]

SENSe:SA:DATA:FILE:TEXT:VERBose[:STATe]

SENSe:SA:DATA:FILE:ERASe[:STATe]

SENSe:SA:DATA:FILE:PREFix

SENSe:SA:DATA:FIFO[:STATe]

SENSe:SA:DATA:SHARed[:STATe]

SENSe:SA:DATA:SHARed:NAME

SENSe:SA:DATA:THReshold[:STATe]

SENSe:SA:DATA:THReshold:VALue

SENSe:SA:DATA:WFACtor

 

Other SA SCPI commands

SA Application - Setup tab

SENS:FREQ:STAR

SENS:FREQ:STOP

SENS:FREQ:CENT

SENS:FREQ:SPAN

SENS:FREQ:SPAN:FULL

SENS:FREQ:CENT:STEP:SIZE

SENS:FREQ:CENT:STEP:AUTO

SENS:FREQ:CW

SENS:SWE:POIN

SENS:POWer:ATT

IF Gain Settings

SENS:PATH:CONFig:ELEM

 

SA Marker Settings

Marker to SA

CALC:MEAS:MARKer:SET SA

Read Band Power

CALC:MEAS:SA:MARK:BPOWer:DATA?

Set and read Band Power Span

CALC:MEAS:SA:MARK:BPOWer:SPAN

Set Band Power State

CALC:MEAS:SA:MARK:BPOWer[:STATe]

Read Band Noise

CALC:MEAS:SA:MARK:BNOise:DATA?

Set and read Band Noise Span

CALC:MEAS:SA:MARK:BNOise:SPAN

Set Band Noise State

CALC:MEAS:SA:MARK:BNOise[:STATe]

Read occupied bandwidth center frequency

CALC:MEAS:SA:MARK:OCCBand:CENTer?

Set and read occupied bandwidth percentage of span

CALC:MEAS:SA:MARK:OCCBand:PERCent

Read the occupied bandwidth power.

CALC:MEAS:SA:MARK:OCCBand:POWer?

Read occupied bandwidth span

CALC:MEAS:SA:MARK:OCCBand:SPAN?

Set occupied bandwidth state

CALC:MEAS:SA:MARK:OCCBand[:STATe]

Other SA commands

See Also


SENSe<ch>:SA:ADC:ACQTime?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Returns the LO acquisition time which is the ADC Record Size x ADC Sampling Frequency (10 nsec or 40 nsec) x (1 + Stacking) x (Video Average.Coefficient).

Parameters

 

<ch>

Channel number of the measurement. If unspecified,value is set to 1.

Examples

SENS:SA:ADC:ACQT?

sense2:sa:adc:acqtime?

Default

Not applicable


SENSe<ch>:SA:ADC:DITHer[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the dither setting

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Dither OFF.

1 - ON - Dither ON.

Learn about these settings.

Examples

SENS:SA:ADC:DITH 1

Query Syntax

SENSe<ch>:SA:ADC:DITH?

Return Type

Boolean

Default

0


SENSe<ch>:SA:ADC:FILTer <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC filter cutoff frequency. The entered frequency value is rounded to the closest value supported by the VNA (11 MHz or 38 MHz).

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Choose 11 MHz or 38 MHz.

Learn about these settings.

Examples

SENS:SA:ADC:FILTer 11MHz

Query Syntax

SENSe<ch>:SA:ADC:FILTer?

Return Type

Numeric

Default

11 MHz


SENSe<ch>:SA:ADC:FILTer:AUTO <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read how the ADC filter is set. When ON, the ADC filter is set based on the start and stop frequencies and the ADC sampling frequency.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 0.

<bool>

Choose from:

0 - OFF - ADC filter is set manually using SENS:SA:ADC:FILT.

1 - ON - ADC filter is set automatically.

Learn about these settings.

Examples

SENS:SA:ADC:FILT:AUTO ON

Query Syntax

SENSe<ch>:SA:ADC:FILTer:AUTO?

Return Type

Boolean

Default

1


SENSe<ch>:SA:ADC:MREC:PERiod <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the period to wait between ADC record chunks.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Choose a value between 64 and 33554432

Learn about these settings.

Examples

SENS:SA:ADC:MREC:PER 256

Query Syntax

SENSe<ch>:SA:ADC:MREC:PERiod?

Return Type

Integer

Default

64


SENSe<ch>:SA:ADC:MREC:SIZE <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the size of the ADC record chunks.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Choose a value between 1 and (ADC record size / 2).

Learn about these settings.

Examples

SENS:SA:ADC:MREC:SIZE 256

Query Syntax

SENSe<ch>:SA:ADC:MREC:SIZE?

Return Type

Integer

Default

32


SENSe:SA:ADC:MREC[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the multiple recording function. Multiple recording allows the ADC Record Size to be divided and acquired in smaller "chunks" and also to specify a wait period between these acquisitions.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - ADC record size "chunking" OFF.

1 - ON - ADC record size "chunking" ON.

Learn about these settings.

Examples

SENS:SA:ADC:MREC 0

Query Syntax

SENSe<ch>:SA:ADC:MREC[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:ADC:RECord:SIZE:FORCe[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC record size mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - ADC record size set automatically.

1 - ON - Manually set ADC record to specified size.

Learn about these settings.

Examples

SENS:SA:ADC:REC:SIZE:FORC:STAT 1

Query Syntax

SENSe<ch>:SA:ADC:REC:SIZE:FORC[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:ADC:RECord:SIZE:FORCe:VALue <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the integer size value for the force ADC record size feature.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

ADC record size.

Learn about these settings.

Examples

SENS:SA:ADC:REC:SIZE:FORC:VAL 64

Query Syntax

SENSe<ch>:SA:ADC:REC:SIZE:FORC:VAL?

Return Type

Numeric

Default

Not applicable


SENSe<ch>:SA:ADC:RECord:SIZE:MAX?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the current maximum available ADC record size.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:ADC:REC:SIZE:MAX?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:ADC:RECord:SIZE:MIN?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the current minimum available ADC record size.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:ADC:REC:SIZE:MIN?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:ADC:RECord:SIZE:VALue?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read ADC record size value.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:ADC:REC:SIZE:VAL? 256

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:ADC:SAMPle:DECimation:FIR <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the FIR filter for 25 MHz decimation.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF -Disable 25 MHz FIR filter.

1 - ON - Enable 25 MHz FIR filter.

Examples

SENS:SA:ADC:SAMPle:DECimation:FIR 1

Query Syntax

SENSe<ch>:SA:ADC:SAMPle:DECimation:FIR?

Return Type

Boolean

Default

0


SENSe<ch>:SA:ADC:SAMPle:RATE <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC sampling frequency. The entered frequency is rounded to the closest value supported by the VNA (25 MHz or 100 MHz).

Parameters

 

<ch>

Any existing SA channel.

<num>

Choose from 100 MHz or 25 MHz.

Learn about these settings.

Examples

SENS:SA:ADC:SAMP:RATE 100MHz

Query Syntax

SENSe<ch>:SA:ADC:SAMP:RATE?

Return Type

Numeric

Default

100 MHz


SENSe<ch>:SA:ADC:SAMPle:RATE:AUTO <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC sample rate mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Manually set ADC sampling rate using SENSe:SA:ADC:SAMPle:RATE.

1 - ON - ADC sampling rate set automatically.

Learn about these settings.

Examples

SENS:SA:ADC:SAMP:RATE:AUTO 1

Query Syntax

SENSe<ch>:SA:ADC:SAMPle:RATE:AUTO?

Return Type

Boolean

Default

1


SENSe:SA:ADC:STACking:STATe <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the ADC sample stacking.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - ADC sample stacking OFF.

1 - ON - ADC sample stacking ON.

Learn about these settings.

Examples

SENS:SA:ADC:STAC:STAT 0

Query Syntax

SENSe<ch>:SA:ADC:STACking:STATe?

Return Type

Boolean

Default

0


SENSe<ch>:SA:ADC:STACking:VALue [<MAX>,] <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC stacking value.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 0 (no stacking).

[<MAX>]

Sets and reads the current maximum available stacking size.

<value>

Choose a value between 0 and 65535.

Learn about these settings.

Examples

SENS:SA:ADC:STAC:VAL 1

Query Syntax

SENSe<ch>:SA:ADC:STACking:VALue? MAX

Return Type

Integer

Default

0


SENSe<ch>:SA:BANDwidth[:RESolution] <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the resolution bandwidth. Also set SENS:SA:BAND:AUTO OFF.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Choose a value between 6 Hz and 3 MHz. Attempting to set the bandwidth outside these bounds will force the bandwidth to the nearest bound.

Learn about these settings.

Examples

SENS:SA:BAND 1e3

Query Syntax

SENSe<ch>:SA:BANDwidth[:RESolution]?

Return Type

Numeric

Default

100 kHz


SENSe<ch>:SA:BANDwidth:RESolution <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the minimum and maximum resolution bandwidth.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

MAX

MIN

Examples

SENS:SA:BAND:RES MAX

Query Syntax

SENSe<ch>:SA:BANDwidth:RESolution? MIN

Return Type

Double

Default

N/A


SENSe<ch>:SA:BANDwidth[:RESolution]:AUTO <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read how the resolution bandwidth is set. When ON, the resolution bandwidth is set based on Span/RBW ratio.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Res. BW is set manually using SENS:SA:BAND.

1 - ON - Res. BW is set automatically.

Learn about these settings.

Examples

SENS:SA:BAND:AUTO 1

Query Syntax

SENSe<ch>:SA:BANDwidth[:RESolution]:AUTO?

Return Type

Boolean

Default

1


SENSe<ch>:SA:BANDwidth:SEARch:OCCupied:MIN <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the minimum search frequency to use during an Occupied BW search measurement. Power below this frequency is ignored.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Minimum search frequency value.

Learn about these settings.

Examples

SENS:SA:BAND:SEAR:OCC:MIN 300e6

Query Syntax

SENSe<ch>:SA:BANDwidth:SEARch:OCCupied:MIN?

Return Type

Numeric

Default

250 MHz


SENSe<ch>:SA:BANDwidth:SHAPe <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the resolution bandwidth shape.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

GAUSsian

FLATtop

KAISer

BLACkman

NONE

Learn about these settings.

Examples

SENS:SA:BAND:SHAP GAUS

Query Syntax

SENSe<ch>:SA:BANDwidth:SHAPe?

Return Type

Enumeration

Default

GAUSsian


SENSe<ch>:SA:BANDwidth:VIDeo <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the minimum and maximum video bandwidth.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

MAX

MIN

Examples

SENS:SA:BAND:VID MAX

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo? MIN

Return Type

Double

Default

N/A


SENSe<ch>:SA:BANDwidth:VIDeo <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the Video bandwidth. Also set SENS:SA:BAND:VID:AUTO OFF.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Choose a value between 3 Hz and 3 MHz. Going outside this range places the trace into a hold mode.

Learn about these settings.

Examples

SENS:SA:BAND:VID 1e5

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo?

Return Type

Numeric

Default

100 kHz


SENSe<ch>:SA:BANDwidth:VIDeo:AUTO <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read how the video bandwidth is set. When ON, video bandwidth is set based on RBW/VBW ratio.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Video BW is set manually using SENS:SA:BAND.

1 - ON - Video BW is set automatically.

Learn about these settings.

Examples

SENS:SA:BAND:VID:AUTO 1

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo:AUTO?

Return Type

Boolean

Default

1


SENSe<ch>:SA:BANDwidth:VIDeo:AVERage:COUNt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Reads the number of Video bandwidth sweeps that are averaged together. This readout is displayed on the SA setup page.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:BAND:VID:AVER:COUNt?

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo:AVER:COUNt?

Return Type

Numeric

Default

1


SENSe<ch>:SA:BANDwidth:VIDeo:AVER:TYPE <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the averaging type.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

VOLTage

POWer

LOG

VMAX (Voltage Max)

VMIN (Voltage Min)

Learn about these settings.

Examples

SENS:SA:BAND:VID:AVER:TYPE VOLT

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo:AVER:TYPE?

Return Type

Enumeration

Default

POWer


SENSe<ch>:SA:BANDwidth:VIDeo:RATio <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the RBW / VBW ratio.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

RBW / VBW ratio.

Learn about these settings.

Examples

SENS:SA:BAND:VID:RAT

Query Syntax

SENSe<ch>:SA:BANDwidth:VIDeo:RATio?

Return Type

Numeric

Default

1.0


SENSe<ch>:SA:DATA:BINs:COUNt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the number of DFT points to be exported across the total RF span. Note that this number is modified by the SENSe:SA:COHerence:MULTitone:DATa ZNT setting: If coherent multitone mode is enabled, only the frequency points that are on the multitone grid are exported.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:BIN:COUN?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DATA:FIFO[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables exporting data to the FIFO (First-IN, First-OUT) data buffer. FIFO is a circular buffer that allows very fast Read-Write access.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Export data to FIFO disabled.

1 - ON - Export data to FIFO enabled.

Examples

SENS:SA:DATA:FIFO 1

Query Syntax

SENSe<ch>:SA:DATA:FIFO[:STATe]?

Return Type

Boolean

Default

0

Note: FIFO commands are under SYTSem:FIFO, and a new set of commands has been added here for binary data.


SENSe<ch>:SA:DATA:FILE:BINary[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables binary file (*.bin) output. Data is not exported until the next new sweep occurs.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Disable binary file output.

1 - ON - Enable binary file output.

Examples

SENS:SA:DATA:FILE:BIN 1

Query Syntax

SENSe<ch>:SA:DATA:FILE:BINary[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:FILE:ERASe[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables erasing output data files after each sweep. When disabled, data is appended to the output file after each sweep which could lead to very large files sizes (and eventually fill the disk).

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Erase data files after each sweep disabled.

1 - ON - Erase data files after each sweep enabled.

Examples

SENS:SA:DATA:FILE:ERA 1

Query Syntax

SENSe<ch>:SA:DATA:FILE:ERASe[:STATe]?

Return Type

Boolean

Default

1


SENSe<ch>:SA:DATA:FILE:PREFix <string>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and return the file name prefix for the data file. The receivers selected in SENSe:SA:DATA:RECeivers:LIST will be appended to the specified prefix name with either "_X.txt" if a text file is exported (SENSe:SA:DATA:FILE:TEXT) or "_X.bin" if a binary file is exported (SENSe:SA:DATA:FILE:BINary). X is the receiver name.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<string>

String. Specified prefix.

Examples

SENS:SA:DATA:FILE:PREF "C:\TEMP\SA_DATA_OUT"

Query Syntax

SENSe<ch>:SA:DATA:FILE:PREFix?

Return Type

String

Default

"C:\TEMP\SA_DATA_OUT"


SENSe<ch>:SA:DATA:FILE:TEXT:MARKers[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables adding marker data to the text file (*.txt) output.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Do not add marker data to the text file output.

1 - ON - Add marker data to the text file output.

Examples

SENS:SA:DATA:FILE:TEXT:MARK:STAT 1

Query Syntax

SENSe<ch>:SA:DATA:FILE:TEXT:MARKers[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:FILE:TEXT[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables text file (*.txt) output. Data is not exported until the next new sweep occurs.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Disable text file output.

1 - ON - Enable text file output.

Examples

SENS:SA:DATA:FILE:TEXT 1

Query Syntax

SENSe<ch>:SA:DATA:FILE:TEXT[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:FILE:TEXT:VERBose[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables exporting frequency and data for text files. Data is not exported until the next new sweep occurs.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Disable text file output.

1 - ON - Enable text file output.

Examples

SENS:SA:DATA:FILE:TEXT 1

Query Syntax

SENSe<ch>:SA:DATA:FILE:TEXT[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:RECeivers?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the list of receivers that will be exported to a data file.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<list>

String. Comma separated list of receivers.

Examples

SENS:SA:DATA:RECeivers?

Return Type

String

Default

Not applicable

Note: The list is set with SENS:SA:DATA:REC:LIST can contain more receivers, this query will only return the ones that are currently measured and that are in the receiver list.


SENSe<ch>:SA:DATA:RECeivers:COUNt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the number of currently exported receivers.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:REC:COUN?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DATA:RECeivers:LIST <string>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the list of receivers to export.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<string>

String. Comma separated list of receivers.

Examples

SENS:SA:DATA:REC:LIST "A,B,a1,a2"

Query Syntax

SENSe<ch>:SA:DATA:RECeivers:LIST?

Return Type

String

Default

Not applicable

Note: This list can contain receivers that are not currently measured in the channel. However, this is not an issue. To get the current list of receivers that export data, query SENS:SA:DATA:REC?


SENSe<ch>:SA:DATA:SHARed:NAME <string>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Assigns a specified name to the Microsoft Windows shared data mechanism when SENSe:SA:DATA:SHARed:STATe is enabled.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<string>

String. Memory file name.

Examples

SENS:SA:DATA:SHAR:NAM "Mem_Share"

Query Syntax

SENSe<ch>:SA:DATA:SHARed:NAME?

Return Type

String

Default

Not applicable


SENSe<ch>:SA:DATA:SHARed[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables exporting data to shared memory, which is the fastest way to transfer data between applications.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Disable memory sharing.

1 - ON - Enable memory sharing.

Examples

SENS:SA:DATA:SHAR 1

Query Syntax

SENSe<ch>:SA:DATA:SHARed[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:SIZE?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the byte size of the data to be exported in binary mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:SIZE?

Return Type

Integer

Default

Not applicable

Note: Returned number can exceed the maximum integer number size. In that case, an error will be raised. For that reason, we provide an access to larger numbers with the same query and LSB or MSB suffixes.


SENSe<ch>:SA:DATA:SIZE:BIN?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the byte size of one data bin in binary mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:SIZE:BIN?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DATA:SIZE:HIGH?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the most significant bytes (MSB) of the byte size of the data to be exported.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:SIZE:HIGH?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DATA:SIZE:LOW?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the least significant bytes (LSB) of the byte size of the data to be exported.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:SIZE:LOW?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DATA:STARt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the frequency of the first RF bin.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:STAR?

Return Type

Double

Default

Not applicable

Note: This value can differ slightly from the SA Sweep start frequency, the frequency of the first RF bin is aligned with the current DFT grid.


SENSe<ch>:SA:DATA:THReshold[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables data level threshold mode. Set the threshold level using the SENSe:SA:DATA:THReshold:VALue command.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Disable threshold mode.

1 - ON - Enable threshold mode.

Examples

SENS:SA:DATA:THR:STAT 1

Query Syntax

SENSe<ch>:SA:DATA:THReshold[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DATA:THReshold:VALue <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the threshold value (dBm). For text file output with verbose mode, only the frequencies with power greater than this threshold setting will be written to the file. This command can be used as a kind of simple spurious search.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Threshold setting in dBm.

Examples

SENS:SA:DATA:THR:VAL -5 dBm

Query Syntax

SENSe<ch>:SA:DATA:THReshold:VALue?

Return Type

Real

Default

-60 dBm


SENSe<ch>:SA:DATA:TYPE <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the data format.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

MAGDb: Set data format to log magnitude in dBm.

AMPVolt: Set data format to linear magnitude in volts.

PINT: Set data format to Packed Integers: a more compact (2 bytes) numeric representation for dBm. Each set of 2 bytes is a short number s, to get the dBm value compute (s/200.0 -36.165).

Examples

SENS:SA:DATA:TYPE MAGDB

Query Syntax

SENSe<ch>:SA:DATA:TYPE?

Return Type

Enumeration

Default

MAGDB


SENSe<ch>:SA:DATA:WFACtor?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the windowing factor for band power computation. This factor is derived from the window type (Gaussian, flat top, etc.). When doing the sum of linear power over a band, use this factor to compensate the side lobe effect of windowing to get an accurate band power value.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DATA:WFACtor?

Return Type

Real

Default

Not applicable


SENSe:SA:DETector:BYPass:[STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the detector bypass setting.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Detector bypass OFF.

1 - ON - Detector bypass ON.

Learn about these settings.

Examples

SENS:SA:DET:BYP 0

Query Syntax

SENSe<ch>:SA:DETector:BYPass:[STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:DETector:FUNCtion <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the detector type.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

PEAK

AVERage

SAMPle

NORMal

NEGPeak

PSAMple (Peak Sample)

PAVerage (Peak Average)

Learn about these settings.

Examples

SENS:SA:DET:FUNC AVER

Query Syntax

SENSe<ch>:SA:DETector:FUNCtion?

Return Type

Enumeration

Default

PEAK


SENSe<ch>:SA:DFT:BANDwidth:AUTO <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the default values for DFT bandwidth.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF -DFT minimum and maximum values are set manually:

Narrow - 500 kHz to 11 MHz

Wide - 500 kHz to 44 MHz

1 - ON - DFT minimum and maximum values are set to their default values:

Narrow - 1 MHz to 10 MHz

Wide - 1 MHz to 34 MHz

Examples

SENS:SA:DFT:BAND:AUTO 0

Query Syntax

SENSe<ch>:SA:DFT:BANDwidth:AUTO?

Return Type

Boolean

Default

1


SENSe<ch>:SA:DFT:BANDwidth:NARRow:MAX <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the maximum value for narrow DFT bandwidth. The maximum narrow DFT bandwidth setting is 11 MHz. The SENSe:SA:DFT:BANDwidth:AUTO must be set to OFF to set this value manually.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Max narrow DFT bandwidth.

Examples

SENS:SA:DFT:BAND:NARR:MAX 11e6

Query Syntax

SENSe<ch>:SA:DFT:BANDwidth:NARRow:MAX?

Return Type

Double

Default

10e6


SENSe<ch>:SA:DFT:BANDwidth:NARRow:MIN <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the minimum value for narrow DFT bandwidth. The minimum narrow DFT bandwidth setting is 500 kHz. The SENSe:SA:DFT:BANDwidth:AUTO must be set to OFF to set this value manually.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Minimum narrow DFT bandwidth.

Examples

SENS:SA:DFT:BAND:NARR:MIN 5e5

Query Syntax

SENSe<ch>:SA:DFT:BANDwidth:NARRow:MIN?

Return Type

Double

Default

1e6


SENSe<ch>:SA:DFT:BANDwidth:WIDE:MAX <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the maximum value for wide DFT bandwidth. The maximum wide DFT bandwidth setting is 44 MHz. The SENSe:SA:DFT:BANDwidth:AUTO must be set to OFF to set this value manually.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Max wide DFT bandwidth.

Examples

SENS:SA:DFT:BAND:WIDE:MAX 44e6

Query Syntax

SENSe<ch>:SA:DFT:BANDwidth:WIDE:MAX?

Return Type

Double

Default

34e6


SENSe<ch>:SA:DFT:BANDwidth:WIDE:MIN <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the minimum value for wide DFT bandwidth. The minimum wide DFT bandwidth setting is 500 kHz. The SENSe:SA:DFT:BANDwidth:AUTO must be set to OFF to set this value manually.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Minimum wide DFT bandwidth.

Examples

SENS:SA:DFT:BAND:WIDE:MIN 5e5

Query Syntax

SENSe<ch>:SA:DFT:BANDwidth:WIDE:MIN?

Return Type

Double

Default

1e6


SENSe<ch>:SA:DFT:RECord:SIZE?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the current DFT record size. This value is based on the SENSe:SA:ADC:RECord:SIZE:VALue and SENSe:SA:DFT:TYPE settings.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DFT:REC:SIZE?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:DFT:RESolution?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the DFT resolution.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:DFT:RES?

Default

Not applicable


SENSe<ch>:SA:DFT:TYPE <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and return the DFT record size type. The DFT SENSe:SA:DFT:RECord:SIZE is based on the SENSe:SA:ADC:RECord:SIZE:VALue and the DFT record size type.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

POW2 - Sets the DFT record size to the next power of 2 greater than or equal to the current ADC record size.

RADix - Sets the DFT to the nearest equal or larger integer that can be decomposed with 2, 3, 5, 7, 11 ,13 radixes.

ARBitrary -  Sets DFT record size equal to the ADC record size. If the current ADC record size is a large prime number, then the DFT can be very slow.

FASTest - Sets the DFT record size as close as possible to the ADC record size (larger or equal) while optimizing processing speed.

Examples

SENS:SA:DFT:TYPE ARB

Query Syntax

SENSe<ch>:SA:DFT:TYPE?

Return Type

Enumeration

Default

FASTest

Note: In previous releases the default was POW2.


SENSe<ch>:SA:FFT:DITHer[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the FFT grid dither setting

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Dither OFF.

1 - ON - Dither ON.

Examples

SENS:SA:FFT:DITH ON

Query Syntax

SENSe<ch>:SA:FFT:DITH?

Return Type

Boolean

Default

0


SENSe<ch>:SA:FFT:RES?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the FFT resolution.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:FFT:RES?

Default

Not applicable


SENSe<ch>:SA:FREQuency:SPAN:BANDwidth[:RESolution]:RATio <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the Frequency Span / RBW ratio.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Frequency Span / RBW ratio. Choose a value between 1 and 200e9.

Learn about these settings.

Examples

SENS:SA:FREQ:SPAN:BAND:RAT 100

Query Syntax

SENSe<ch>:SA:FREQuency:SPAN:BANDwidth[:RESolution]:RATio ?

Return Type

Integer

Default

106


SENSe<ch>:SA:FREQuency:TUNE:IMMediate [sync]

Applicable Models: N522xB, N523xB, N524xB

(Write-only) Auto tunes and zooms in on a signal within a SA sweep.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

[sync]

SYNChronous - blocks SCPI commands during auto tune process (default behavior). When no sync is specified, sync is set to SYNChronous.

Note: The auto tune feature can take seconds to process, so a timeout error is likely to occur when sending other commands/queries before the completion of the auto tune process.

ASYNchronous- does NOT block SCPI commands during auto tune process.

Note: The ASYNchronous mode provides a method to check/wait remotely for completion of the auto tune process while allowing other commands/queries to be sent.

Note: In ASYNchronous mode, *OPC? will freeze the instrument and should not be used. Instead, use *OPC and *ESR? to check for completion.

Examples

SENS:SA:FREQ:TUNE:IMM

Return Type

Not applicable

Default

Not applicable


SENSe<ch>:SA:COHerence:MULTitone:DATA <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the data display mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

ALL: Legacy SA mode - all frequency points are displayed.

ZNTones: All the frequencies that are not on the multi-tone coherence grid are set to 200 dBm before being displayed. This setting only has an effect if the coherence multitone mode is enabled.

Examples

SENS:SA:COH:MULT:DATA ALL

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:DATA?

Return Type

Enum

Default

ALL


SENSe<ch>:SA:COHerence:MULTitone:HREJect <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of test signal harmonics you want to be protected against. This adds constraints to the list of LOs used to cover the span.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Number of test signal harmonics to be protected. The more this number is increased, the more constraints are added on the span LOs setting.

Examples

SENS:SA:COH:MULT:HREJ 0

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:HREJect?

Return Type

Integer

Default

0


SENSe<ch>:SA:COHerence:MULTitone:NYQReJect <num>

(Read-Write) Sets and returns the Nyquist protection level. Avoids Nyquist images of the IF higher order signal to fall back on multitone frequencies. This setting can only be set > 1 if the tone spacing of the multitone is not an integer divider of 100 MHz.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Nyquist protection level.

Examples

SENS:SA:COH:MULT:NYQR 2

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:NYQReject?

Return Type

Integer

Default

0


SENSe<ch>:SA:COHerence:MULTitone:PERiod <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the test signal repetition rate (in seconds). This value is 1/SA:COH:MULT:SPAC.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Test signal repetition rate (in seconds).

Examples

SENS:SA:COH:MULT:PER 1E6

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:PERiod?

Return Type

Double

Default

1E6


SENSe<ch>:SA:COHerence:MULTitone:REFerence <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the multitone image rejection offset frequency. If the multitone grid does not start from 0 Hz, this command is used to set its offset. To make this more convenient, this command accepts as well the frequency of any tone of the multitone grid (Hz).

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Offset frequency (in Hz).

Examples

SENS:SA:COH:MULT:REF 0

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:REFerence?

Return Type

Double

Default

0


SENSe<ch>:SA:COHerence:MULTitone:SPACing <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the tone spacing of the multitone signal (in Hz). This value is 1/SA:COH:MULT:PER.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Frequency spacing of multitone signal (in Hz).

Examples

SENS:SA:COH:MULT:SPAC 1E6

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone:SPACing?

Return Type

Double

Default

1000000


SENSe<ch>:SA:COHerence:MULTitone[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Enables/disables multitone image rejection. When enabled, the window type is set to No Window and the list of RBW possible values is recomputed according to the multitone spacing. When disabled, the window type is set back to what it was before enabling and the RBW list is also set to the previous setting.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Multitone image rejection disabled.

1 - ON - Multitone image rejection enabled.

Examples

SENS:SA:COH:MULT: 1

Query Syntax

SENSe<ch>:SA:COHerence:MULTitone[:STATe]?

Return Type

Boolean

Default

OFF


SENSe<ch>:SA:COHerence:MULTitone:VALid?

(Read-only) Read the current multitone settings and determine if they are valid or not.

Parameters

 

<ch>

Channel number of the measurement. If unspecified,value is set to 1.

Examples

SENS:SA:COH:MULT:VAL?

sense2:sa:coherence:multitone:valid?

Return Type

Boolean (ON, OFF, 1, 0) A "1" is valid and a "0" is invalid.

Default

Not applicable


SENSe<ch>:SA:IMAGe:REJect <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the image reject mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

NHIGh

NLOW

MIN

NORMal

BETTer

MAX

Learn about these settings.

Examples

SENS:SA:IMAG:REJ NLOW

Query Syntax

SENSe<ch>:SA:IMAGe:REJect?

Return Type

Enumeration

Default

NORMal


SENSe<ch>:SA:IMAGe:STRENgth <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Sets and returns the image rejection strength. During the image rejection process, several LO acquisitions overlap at the same RF frequency. As a result, different RF signal values can be returned. This command sets the acceptable power differences between LOs in determining actual signals.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Choose from:

WEAK: 3 dB (approximate number, depends on RBW)

NORMal: 1 dB (approximate number, depends on RBW)

STROng: 0.5 dB (approximate number, depends on RBW)

Examples

SENS:SA:IMAG:STREN STROng

Query Syntax

SENSe<ch>:SA:IMAGe:STRENgth?

Return Type

Enumeration

Default

MEDium


SENSe<ch>:SA:LO:FREQ:FORCe <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read enable force LO to frequency mode.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Force LO to frequency is disabled.

1 - ON - Manually set LO to specified frequency using SENSe:SA:LO:FREQ:VALue. Only applied if Image Reject is set to None, LO High or None, LO Low.

Learn about these settings.

Examples

SENS:SA:LO:FREQ:FORC 1

Query Syntax

SENSe<ch>:SA:LO:FREQ:FORC?

Return Type

Boolean

Default

0


SENSe<ch>:SA:LO:FREQ:VALue <num>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read enable force LO to frequency.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<num>

Frequency in Hz. Choose a value within the frequency range of the analyzer.

Learn about these settings.

Examples

SENS:SA:LO:FREQ:VAL 1e9

Query Syntax

SENSe<ch>:SA:LO:FREQ:VAL?

Return Type

Numeric

Default

1 GHz


SENSe<ch>:SA:LO:COUNt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Returns the number of LO acquisitions determined by the Image Reject selection and the span.

Parameters

 

<ch>

Channel number of the measurement. If unspecified,value is set to 1.

Examples

SENS:SA:LO:COUN?

sense2:sa:lo:count?

Default

Not applicable


SENSe<ch>:SA:LO:RANDom[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the LO randomize state.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<char>

Choose from:

0 - OFF - LO Randomize is set to OFF.

1 - ON - LO Randomize is set to ON.

Learn about these settings.

Examples

SENS:SA:LO:RAND 1

Query Syntax

SENSe<ch>:SA:LO:RANDom[:STATe]?

Return Type

Boolean

Default

1


SENSe<ch>:SA:SOURce:DC:SWEep:FIRst[:DIMension] <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the DC sweep order. The SA may be programmed to loop through a series of spectrum measurements at multiple RF source frequencies, multiple RF source powers, and multiple DC voltages. These settings determine whether the DC sources are swept before the RF power and frequencies are swept, or whether the DC sources are swept after the RF power and frequencies are swept.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

DC sweep order. Choose from:

DC- Sweep through each DC voltage step first then sweep through the next frequency.

RF- Sweep through each frequency step first then sweep through the next DC voltage.

Learn about these settings

Examples

SENS:SA:SOUR:DC:SWE:FIR DC

Query Syntax

SENSe<ch>:SA:SOUR:DC:SWEep:FIRst?

Return Type

Enumeration

Default

DC


SENSe<ch>:SA:SOURce:DC:SWEep:POINt <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of steps the source will make across the specified source DC range. This setting is common to all sources.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Point count. Choose an integer value of 1 or higher.

Learn about these settings

Examples

SENS:SA:SOUR:DC:SWE:POIN 100

Query Syntax

SENSe<ch>:SA:SOUR:DC:SWEep:POINt?

Return Type

Integer

Default

1


SENSe:SA:SOURce:DC:SWEep[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the DC sources. If ON, the DC sources sweep between their start and stop voltages. If OFF, the DC sources are set to their start voltages.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - DC sweep OFF.

1 - ON - DC sweep ON.

Learn about these settings.

Examples

SENS:SA:SOUR:DC:SWE 1

Query Syntax

SENSe<ch>:SA:SOURce:DC:SWEep[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:SOURce<port>:FREQuency:CW <num>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source CW frequency.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<num>

CW frequency in Hz. Choose a value within the frequency range of the analyzer.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:FREQ:CW 1e10

sense2:sa:source:frequency:cw 1e9,"Port 1 Src2"

Query Syntax

SENSe<ch>:SA:SOURce<port>:FREQuency:CW?

Return Type

Numeric

Default

Center frequency of the analyzer.


SENSe<ch>:SA:SOURce<port>:FREQuency:STARt <num>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source start frequency.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<num>

Start frequency in Hz. Choose a value within the frequency range of the analyzer.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:FREQ:STAR 1e9

sense2:sa:source:frequency:start 1e9,"Port 1 Src2"

Query Syntax

SENSe<ch>:SA:SOURce<port>:FREQuency:STARt?

Return Type

Numeric

Default

Start frequency of the analyzer.


SENSe<ch>:SA:SOURce<port>:FREQuency:STOP <num>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source stop frequency.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<num>

Stop frequency in Hz. Choose a value within the frequency range of the analyzer.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:FREQ:STOP 1e10

sense2:sa:source:frequency:stop 1e9,"Port 1 Src2"

Query Syntax

SENSe<ch>:SA:SOURce<port>:FREQuency:STOP?

Return Type

Numeric

Default

Stop frequency of the analyzer.


SENSe<ch>:SA:SOURce:POW:SWEep:POINt:COUNt <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of steps the source will make across the specified source power range. This setting is common to all sources.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Point count. Choose an integer value of 1 or higher.

Examples

SENS:SA:SOUR:POW:SWE:POIN:COUN 100

Query Syntax

SENSe<ch>:SA:SOUR:POW:SWEep:POINt:COUNt?

Return Type

Integer

Default

1


SENSe<ch>:SA:SOURce:POW:SWEep:REPeat:COUNt <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of SA (receiver) sweeps for each Source Step. This setting is common to all sources.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Repeat count. Choose an integer value of 1 or higher.

Examples

SENS:SA:SOUR:POW:SWE:REP:COUN 5

Query Syntax

SENSe<ch>:SA:SOUR:POW:SWEep:REPeat:COUNt?

Return Type

Integer

Default

1


SENSe<ch>:SA:SOURce<port>:POWer:STARt <dBm>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source start power level. This command applies to Power or LFPower sweep types.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<dBm>

Start power level in dBm. Choose a value within the power range of the source.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:POW:STAR 0

Query Syntax

SENSe<ch>:SA:SOURce<port>:POWer:STARt?

Return Type

Numeric

Default

Default of source


SENSe<ch>:SA:SOURce<port>:POWer:STOP <dBm>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source stop power level. This command applies to Power or LFPower sweep types.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<dBm>

Stop power level in dBm. Choose a value within the power range of the source.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:POW:STOP -5

Query Syntax

SENSe<ch>:SA:SOURce<port>:POWer:STOP?

Return Type

Numeric

Default

Default of source


SENSe<ch>:SA:SOURce<port>:POWer[:VALue] <dBm>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source output power level. This command applies to CW or LINear sweep types.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<dBm>

Source output power level in dBm. Choose a value within the power range of the source.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:POW -5

Query Syntax

SENSe<ch>:SA:SOURce<port>:POWer?

Return Type

Numeric

Default

Default of source


SENSe<ch>:SA:SOURce:SWEep:FIRst[:DIMension] <enum>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the sweep order. This command applies whenever frequency and power are being swept (LFPower sweep type). Otherwise, this setting is ignored. For example, if all the active sources are set to CW and/or LINear sweep type, or if all the active sources are set to CW and/or POWer sweep type, the sweep order is ignored. If any active source is set to LFPower sweep type, or if an active source is set to LINear sweep type and another active source is set to POWer sweep type, then the sweep order setting will be used.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<enum>

Sweep order. Choose from:

FREQ - Sweep from Start to Stop frequency first followed by a power sweep.

POWer- Sweep power first then sweep from Start to Stop frequency.

Examples

SENS:SA:SOUR:SWE:FIR POW

Query Syntax

SENSe<ch>:SA:SOUR:SWEep:FIRst?

Return Type

Enumeration

Default

FREQ


SENSe<ch>:SA:SOURce<port>:SWEep:POINt:COUNt <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of steps the source will make across the specified source frequency range.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<value>

Point count. Choose a value between 1 and 2e9.

Examples

SENS:SA:SOUR:SWE:POIN:COUN 100

Query Syntax

SENSe<ch>:SA:SOUR:SWEep:POINt:COUNt?

Return Type

Integer

Default

1


SENSe<ch>:SA:SOURce<port>:SWEep:REPeat:COUNt <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the number of SA (receiver) sweeps for each Source Step. This setting is common to all sources.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<value>

Repeat count. Choose a value between 1 and 2e9.

Examples

SENS:SA:SOUR:SWE:REP:COUN 5

Query Syntax

SENSe<ch>:SA:SOUR:SWEep:REPeat:COUNt?

Return Type

Integer

Default

1


SENSe<ch>:SA:SOURce<port>:SWEep:TYPE <enum>[,src]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the source sweep type.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<port>

Source port number of the VNA. If unspecified, value is set to 1. To make settings for ports that are not simple numbers, use the [src] argument.

<enum>

Sweep type. Choose from:

CW - SA source is at a single frequency, set with SENS:SA:SOUR:FREQ:CW.

LINear - SA source sweeps from Start to Stop in linear steps.

POWer - SA source is set to a power sweep.

LFPower - SA source is set to sweep from the Start to Stop frequency and power sweep. The order is determined by the SENS:SA:SOUR:SWEep:FIRst command.

[,src]

String. (NOT case sensitive). Source port. Optional. Use SOUR:CAT? to return a list of valid port names.

While this argument can be used to make settings for ALL ports, it is designed to access ports such as an external source, or one of the Source 2 outputs on the 2-port 2-source PNA-X model such as "Port 1 Src2". Otherwise, the <port> argument performs the same function. If both arguments are specified, [src] takes priority.

Examples

SENS:SA:SOUR:SWE:TYPE CW

sense2:sa:source:sweep:type linear,"Port 1 Src2"

Query Syntax

SENSe<ch>:SA:SOURce<port>:SWEep:TYPE?

Return Type

Enumeration

Default

CW


SENSe<ch>:SA:SPAN:BINS:COUNt?

Applicable Models: N522xB, N523xB, N524xB

(Read-only) Read the current span DFT bin count.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

Examples

SENS:SA:SPAN:BINS:COUN?

Return Type

Integer

Default

Not applicable


SENSe<ch>:SA:TRACe:IMAGe[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the show / hide state of the image reject traces in the measurement parameters dialog.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF -Disable image reject traces.

1 - ON - Enable image reject traces and set mode using SENS:SA:IMAG:REJ.

Learn about these settings.

Examples

SENS:SA:TRAC:IMAG ON

Query Syntax

SENSe<ch>:SA:TRACe:IMAGe[:STATe]?

Return Type

Boolean

Default

0


SENSe:SA:TRIGer:LEVel[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of a measurement trigger event that will occur whenever the ADC level is greater than the value specified using the SENSe:SA:TRIGer:LEVel:VALue command.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - ADC measurement trigger OFF.

1 - ON - ADC measurement trigger ON.

Learn about these settings.

Examples

SENS:SA:TRIG:LEV 0

Query Syntax

SENSe<ch>:SA:TRIGer:LEVel[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:TRIGer:LEVel:VALue <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ADC trigger level.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Choose a value between 0 and 16383.

Learn about these settings.

Examples

SENS:SA:TRIG:LEV:VAL 10

Query Syntax

SENSe<ch>:SA:TRIGer:LEVel:VALue?

Return Type

Integer

Default

100


SENSe:SA:TRIGer:PERCounter[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of a measurement trigger event based on the specified period set using the SENSe:SA:TRIGer:PERCounter:VALue command.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Periodic counter OFF.

1 - ON - Periodic counter ON.

Learn about these settings.

Examples

SENS:SA:TRIG:PERC 0

Query Syntax

SENSe<ch>:SA:TRIGer:PERCounter[:STATe]?

Return Type

Boolean

Default

0


SENSe<ch>:SA:TRIGer:PERCounter:VALue <value>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the periodic counter value. This command initiates a measurement trigger event based on the specified period.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Choose a value between 0 and 2147483647.

Learn about these settings.

Examples

SENS:SA:TRIG:PERC:VAL 64

Query Syntax

SENSe<ch>:SA:TRIGer:PERCounter:VALue?

Return Type

Integer

Default

256


SENSe<ch>:SA:COHerence:VECTor:AVERage[:STATe] <bool>

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the ON/OFF state of the vector averaging.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<bool>

Choose from:

0 - OFF - Vector averaging OFF.

1 - ON - Vector averaging ON.

Learn about these settings.

Examples

SENS:SA:COH:VECT:AVER:STAT 1

Query Syntax

SENSe<ch>:SA:COHerence:VECTor:AVERage:STATe?

Return Type

Boolean

Default

0


SENSe<ch>:SA:COHerence:VECTor:AVERage:VALue <value>[,<enum>]

Applicable Models: N522xB, N523xB, N524xB

(Read-Write) Set and read the vector averaging value. In addition, read the minimum and maximum values using MIN/MAX.

Parameters

 

<ch>

Any existing SA channel. If unspecified, value is set to 1.

<value>

Choose a value between 0 and 65536.

Learn about these settings.

<enum>

MIN - Read the minimum value.

MAX - Read the maximum value.

Examples

SENS:SA:COH:VECT:AVER:VAL 1

SENS:SA:COH:VECT:AVER:VAL MAX

SENS:SA:COH:VECT:AVER:VAL? MAX

Query Syntax

SENSe<ch>:SA:COHerence:VECTor:AVERage:VALue?

Return Type

Integer

Default

1 (no averaging)