Gets the gain of the device under test. This value is expressed in dB.

Syntax

Namespace: NationalInstruments.RFmx.SpecAnMX

public int GetGain(string selectorString, out double value)

Remarks

This method gets the value of IdpdResultsGain attribute.

Parameters

NameTypeDescription
selectorStringstring

Specifies the result name.
Example: ""
"result::r1"
You can use the BuildResultString(string) method to build the selectorString.

valueout double

Upon return, contains the gain of the device under test. This value is expressed in dB.

Returns

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