Sets the attenuation of a switch (or cable) connected to the RF IN connector of the signal analyzer. This value is expressed in dB. For more information about attenuation, refer to the Attenuation and Signal Levels topic for your device in the NI RF Vector Signal Analyzers Help . On a MIMO session, use port::(deviceName)/(channelNumber) as a selector string to configure or read this property per port. If you do not specify port string, this method is configured for all ports. Refer to the Selector Strings topic for information about the string syntax for named signals.

Syntax

Namespace: NationalInstruments.RFmx.WlanMX

public int SetExternalAttenuation(string selectorString, double value)

Remarks

This method sets the value of ExternalAttenuation attribute.The default value is 0.

Parameters

NameTypeDescription
selectorStringstring

Specifies the port number.
Example: "port0".
You can use the NationalInstruments.RFmx.InstrMX.RFmxInstrMX.BuildPortString(string,string) method to build the selector string.

valuedouble

Specifies the attenuation of a switch (or cable) connected to the RF IN connector of the signal analyzer. This value is expressed in dB. For more information about attenuation, refer to the Attenuation and Signal Levels topic for your device in the NI RF Vector Signal Analyzers Help .

Returns

Returns the status code of this method. The status code either indicates success or describes a warning condition.