Write/Read |
About SA Application |
Description |
Set and read the source power level. This command applies to CW or linear sweep types. |
VB Syntax |
sa.SourcePower (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 |
(Double) Source power level in dBm. Choose a value within the power range of the source. |
Return Type |
Double |
Default |
Default of the source. |
Examples |
sa.SourcePower("Port 1") = -5 'Write |
value = sa.SourcePower("Port 1") 'Read |
|
C++ Syntax |
HRESULT put_SourcePower(BSTR sourcename, double power); HRESULT get_SourcePower(BSTR sourcename, double* power); |
Interface |
ISpectrumAnalyzer |