Write/Read |
About SA Application |
Description |
Set and read the source sweep type. |
VB Syntax |
sa.SourceSweepType2 (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 NASASourceSweepTypes) Choose from: 0 - naSASourceFreqSweep - SA source sweeps from Start to Stop in linear steps. 1 - naSASourceFreqAndPowerSweep - The source is set to sweep from the Start to Stop frequency and power sweep. The order is determined by the SourceSweepFirstDimension command. 2 - naSASourcePowerSweep - SA source is set to a power sweep. 3 - naSASourceCWFreqSweep - SA source is at a single frequency, set with SourceCWFrequency Property. |
Return Type |
Enum |
Default |
3 - naSASourceCWFreqSweep |
Examples |
sa.SourceSweepType2("Port 1")= naSASourceCWFreqSweep'Write |
value = sa.SourceSweepType2("Port 1") 'Read |
|
C++ Syntax |
HRESULT put_SourceSweepType2(BSTR sourcename, tagNASASourceSweepTypes sweeptype); HRESULT get_SourceSweepType2(BSTR sourcename, tagNASASourceSweepTypes* sweeptype); |
Interface |
ISpectrumAnalyzer |