Write/Read
About SA Application

SourceSweepType Property


Description

Set and read the source sweep type.

VB Syntax

sa.SourceSweepType (source) = value

Variable

(Type) - Description

sa

A SpectrumAnalyzer (object)

source

(String) Source name enclosed in quotes. Use SourcePortNames to read a list of available source port names. See also Remotely Specifying a Source Port.

value

(Enum as NASweepType) Choose from:

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

3 - naCWTimeSweep - SA source is at a single frequency, set with SourceCWFrequency Property.

Return Type

Enum

Default

3 - naCWTimeSweep

Examples

sa.SourceSweepType("Port 1")= naCWTimeSweep  'Write

value = sa.SourceSweepType("Port 1") 'Read

See an example program.

C++ Syntax

HRESULT put_SourceSweepType(BSTR sourcename, tagNASweepTypes sweeptype);

HRESULT get_SourceSweepType(BSTR sourcename, tagNASweepTypes* sweeptype);

Interface

ISpectrumAnalyzer