Sense:Sweep Commands


Specifies the sweep functions of the analyzer.

SENSe:SWEep:

DWELl

       | AUTO

       | SDELay

GENeration

GROups

       | COUNt

MODE

POINts

PULSe More commands

SLOCal

       | MAXimum

       | STATe

SPEed

STEP

TIME

       | AUTO

       | STARt?

       | [:STOP]

TRIGger

       | DELAY

       | MODE

TYPE

       | FACW

Click on a keyword to view the command details.

See Also


SENSe<cnum>:SWEep:DWELl <num>

Applicable Models: All

(Read-Write) Sets the dwell time between each sweep point.

  • Dwell time is ONLY available with SENSe:SWEep:GENeration set to STEPped; It is Not available in ANALOG.

  • Sending dwell = 0 is the same as setting SENS:SWE:DWEL:AUTO ON. Sending a dwell time > 0 sets SENS:SWE:DWEL:AUTO OFF.

Parameters

 

<cnum>

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

<num>

Dwell time in seconds.

This command will accept MIN or MAX instead of a numeric parameter. See SCPI Syntax for more information.

Examples

SENS:SWE:DWEL .1
sense2:sweep:dwell min

Query Syntax

SENSe<cnum>:SWEep:DWELl?

Return Type

Numeric

Default

0 - (Note: dwell time set to 0 is the same as dwell:auto ON)


SENSe<cnum>:SWEep:DWELl:AUTO <ON | OFF>

Applicable Models: All

(Read-Write) Specifies whether or not to automatically calculate and set the minimum possible dwell time. Setting Auto ON has the same effect as setting dwell time to 0.

Parameters

 

<cnum>

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

<ON | OFF>

ON (or 1) - turns dwell ON.
OFF
(or 0) - turns dwell OFF.

Examples

SENS:SWE:DWEL:AUTO ON
sense2:sweep:dwell:auto off

Query Syntax

SENSe<cnum>:SWEep:DWELl:AUTO?

Return Type

Boolean (1 = ON, 0 = OFF)

Default

ON


SENSe<cnum>:SWEep:DWELl:SDELay <num>

Applicable Models: All

(Read-Write) Specifies the time to wait just before acquisition begins for each sweep. This delay is in addition to Dwell Time and the following two External Trigger delays if enabled.

Parameters

 

<cnum>

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

<num>

Sweep delay in seconds.

This command will accept MIN or MAX instead of a numeric parameter. See SCPI Syntax for more information.

Examples

SENS:SWE:DWEL:SDEL .1
sense2:sweep:dwell:sdelay .5

Query Syntax

SENSe<cnum>:SWEep:DWELl:SDELay?

Return Type

Numeric

Default

0


SENSe<cnum>:SWEep:GENeration <char>

Applicable Models: All

(Read-Write) Sets sweep as Stepped or Analog.

Parameters

 

<cnum>

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

<char>

Choose from:

STEPped - source frequency is CONSTANT during measurement of eah displayed point. More accurate than ANALog. Dwell time can be set in this mode.

ANALog - source frequency is continuously RAMPING during measurement of each displayed point. Faster than STEPped. Sweep time (not dwell time) can be set in this mode.

Examples

SENS:SWE:GEN STEP
sense2:sweep:generation analog

Query Syntax

SENSe<cnum>:SWEep:GENeration?

Return Type

Character

Default

Analog


SENSe<cnum>:SWEep:GROups:COUNt <num>

Applicable Models: All

(Read-Write) Sets the trigger count (groups) for the specified channel. Set trigger mode to group after setting this count.

Parameters

 

<cnum>

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

<num>

Count (groups) number. Choose any number between:
1
and 2e6
(1 is the same as single trigger)

Examples

SENS:SWE:GRO:COUN 10
sense2:sweep:groups:count 50

Query Syntax

SENSe<cnum>:SWEep:GROups:COUNt?

Return Type

Numeric

Default

1


SENSe<cnum>:SWEep:MODE <char>

Applicable Models: All

(Read-Write) Sets the number of trigger signals the specified channel will ACCEPT.

See Triggering the VNA Using SCPI.

Parameters

 

<cnum>

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

<char>

Trigger mode. Choose from:

HOLD - channel will not trigger

CONTinuous - channel triggers indefinitely

GROups - channel accepts the number of triggers specified with the last SENS:SWE:GRO:COUN <num>. This is one of the VNA overlapped commands. Learn more.

SINGle - channel accepts ONE trigger, then goes to HOLD.

Note: To perform simple, single-triggering, use SINGle which requires that TRIG:SOURce remain in the default (internal) setting.

Examples

SENS:SWE:MODE CONT
sense2:sweep:mode hold

Query Syntax

SENSe<cnum>:SWEep:MODE?

Return Type

Character

Default

CONTinuous


SENSe<cnum>:SWEep:POINts <num>

Applicable Models: All

(Read-Write) Sets the number of data points for the measurement.

Parameters

 

<cnum>

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

<num>

Choose any number between 1 and the VNA maximum number of points.

This command will accept MIN or MAX instead of a numeric parameter. See SCPI Syntax for more information.

Examples

SENS:SWE:POIN 51
sense2:sweep:points max

Query Syntax

SENSe<cnum>:SWEep:POINts?

Return Type

Numeric

Default

201


SENSe<cnum>:SWEep:SLOCal:MAXimum <num>

Applicable Models: All

(Read-Write) Sets the Shift LO maximum frequency for the selected channel.

Parameters

 

<cnum>

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

<num>

Range of shift LO maximum frequency is 1.5E8 to Maximum frequency.

Examples

SENS:SWE:SCLOC:MAX 1.5E8
sense2:sweep:slocal:maximum 1.5E8

Query Syntax

SENSe<cnum>:SWEep:SLOCal:MAXimum?

Return Type

Numeric / Double precision floating point

Default

Maximum frequency


SENSe<cnum>:SWEep:SLOCal:STATe <bool>

Applicable Models: All

(Read-Write) Turns ON or OFF the Shift LO mode for the selected channel.

Parameters

 

<cnum>

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

<bool>

Select shoft LO mode from either of the following:

ON or 1 - Turns ON the Shift LO mode.

OFF or 0 - Turns OFF the Shift LO mode.

Examples

SENS:SWE:SLOC:STAT ON
sense2:sweep:slocal:state off

Query Syntax

SENSe<cnum>:SWEep:SLOCal:STATe?

Return Type

Boolean

Default

OFF or 0


SENSe<cnum>:SWEep:SPEed <char>

Applicable Models: All

(Read-Write) Sets and returns the state of Fast Sweep mode. Learn more about Fast Sweep.

Parameters

 

<cnum>

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

<char>

Fast Sweep mode. Choose from:

FAST - turns Fast Sweep Mode ON

NORMal - turns Fast Sweep Mode OFF (Normal Mode).

Examples

SENS:SWE:SPE NORM
sense2:sweep:speed fast

Query Syntax

SENSe<cnum>:SWEep:SPEed?

Return Type

Character

Default

NORMal


SENSe<cnum>:SWEep:STEP <num>

Applicable Models: All

(Read-Write) Sets the frequency step size across the selected frequency range. This effectively sets the number of data points. Available ONLY when Sweep Type = Linear.

Parameters

 

<cnum>

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

<num>

Frequency step size in Hz. Select any value up to the frequency range of the analyzer.

Examples

SENS:SWE:STEP 1e6
sense2:sweep:step 1000000

Query Syntax

SENSe<cnum>:SWEep:STEP?

Return Type

Numeric

Default

NA


SENSe<cnum>:SWEep:TIME:AUTO <ON | OFF>

Applicable Models: All

(Read-Write) Turns the automatic sweep time function ON or OFF.

Parameters

 

<cnum>

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

<ON | OFF>

ON (or 1) - turns the automatic sweep time ON.

OFF (or 0) - turns the automatic sweep time OFF.

Examples

SENS:SWE:TIME:AUTO
sense2:sweep:time:auto off

Query Syntax

SENSe<cnum>:SWEep:TIME:AUTO?

Return Type

Boolean (1 = ON, 0 = OFF)

Default

ON


SENSe<cnum>:SWEep:TIME:STARt?

Applicable Models: All

(Read-only) Returns the time the first point of a Time Sweep is measured.

Parameters

 

<cnum>

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

Examples

SENS:SWE:TIME:STAR?
sense2:sweep:time:start?

Return Type

Numeric

Default

Not Applicable


SENSe<cnum>:SWEep:TIME[:STOP] <num>

Applicable Models: All

(Read-Write) Sets the time the analyzer takes to complete one sweep. If sweep time accuracy is critical, use ONLY the values that are attained using the up and down arrows next to the sweep time entry box. See Sweep Time.

Parameters

 

<cnum>

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

<num>

Sweep time in seconds.

To select the fastest sweep speed, either send MIN as an argument to this command, or send SENS:SWE:TIME:AUTO 1.

This command will accept MIN or MAX instead of a numeric parameter. See SCPI Syntax for more information.

The MAX value will change based on point count, IFBW, and dwell time.

Examples

SENS:SWE:TIME 1ms
sense2:sweep:time .001

Query Syntax

SENSe<cnum>:SWEep:TIME[:STOP]?

Return Type

Numeric

Default

NA


SENSe<cnum>:SWEep:TRIGger:DELay <num>

Applicable Models: All

(Read-Write) Sets and reads the trigger delay for all measurements in the specified CHANNEL. This delay is only applied while TRIG:SOURce EXTernal and TRIG:SCOP CURRent .  After an external trigger is applied, the start of the sweep is delayed for the specified delay value plus any inherent latency.

To apply a trigger delay for all channels (Global), use TRIG:DEL

Parameters

 

<cnum>

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

<num>

Trigger delay value in seconds. Range is from 0 to 3 seconds

Examples

SENS:SWE:TRIG:DELay .003
sense2:sweep:trigger:delay 1

Query Syntax

SENSe<cnum>:SWEep:TRIGger:DELay?

Return Type

Numeric

Default

0


SENSe<cnum>:SWEep:TRIGger:MODE <char>

Applicable Models: All

(Read-Write) Sets and reads the trigger mode for the specified channel. This determines what EACH signal will trigger.  Learn more.

Note: Setting Point and Sweep mode forces Trigger:SCOPe = CURRent

Parameters

 

<cnum>

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

<char>

Trigger mode. choose from:

  • CHANnel - Each trigger signal causes ALL traces in that channel to be swept.

  • SWEep - Each Manual or External trigger signal causes ALL traces that share a source port to be swept.

  • POINt -- Each Manual or External trigger signal causes one data point to be measured.

  • TRACe - Allowed ONLY when SENS:SWE:GEN:POIN is enabled. Each trigger signal causes two identical measurements to be triggered separately - one trigger signal is required for each measurement. Other trigger mode settings cause two identical parameters to be measured simultaneously.

Examples

SENS:SWE:TRIG:MODE SWE
sense2:sweep:trigger:mode point

Query Syntax

SENSe<cnum>:SWEep:TRIGger:MODE?

Return Type

Character

Default

Channel


SENSe<cnum>:SWEep:TYPE <char>

Applicable Models: All

(Read-Write) Sets the type of analyzer sweep mode.  First set sweep type, then set sweep parameters such as frequency or power settings.

See Also: FCA Segment Sweep commands

Parameters

 

<cnum>

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

<char>

Choose from:

LINear | LOGarithmic | POWer | CW | SEGMent

Note: SWEep TYPE cannot be set to SEGMent if there are no segments turned ON. A segment is automatically turned ON when the analyzer is started.

Examples

SENS:SWE:TYPE LIN

sense2:sweep:type segment

Query Syntax

SENSe<cnum>:SWEep:TYPE?

Return Type

Character

Default

LINear


SENSe<cnum>:SWEep:TYPE:FACW <num>

 

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

Number of data points to measure in Fast CW mode. This setting overwrites the standard number of points setting for the channel. The minimum value is 1. The maximum value is 232 - 1 = 2,147,483,647. The "-1" indicates infinite point count (i.e., go forever). Any other value will produce invalid results.

If the data acquisition rate exceeds 400,000 points per second, the upper limit on the number of points is 11e6. The following are conditions that can cause the higher data rate:

  • IFBW's >= 1 MHz and internally triggered.
  • fastCW sweeps that are externally triggered at a rate faster than 400,000 points per second.

Set to 0 to disable Fast CW.

SENS:SWE:TYPE:FACW 1e6
sense2:sweep:type facw 1e3

SENSe<cnum>:SWEep:TYPE:FACW?

Numeric

0 - Disabled