ConfigureThreshold(string, RFmxSpecAnMXAmpmThresholdEnabled, double, RFmxSpecAnMXAmpmThresholdType)
- Updated2025-10-13
- 1 minute(s) read
Configures the threshold level for the samples that need to be considered for the AMPM measurement.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int ConfigureThreshold(string selectorString, RFmxSpecAnMXAmpmThresholdEnabled thresholdEnabled, double thresholdLevel, RFmxSpecAnMXAmpmThresholdType thresholdType)
Remarks
This method maps to the RFmxSpecAn_AMPMCfgThreshold() function in C.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Pass an empty string. The signal name that is passed when creating the signal configuration is used. |
| thresholdEnabled | RFmxSpecAnMXAmpmThresholdEnabled | Specifies whether to enable thresholding of the acquired samples to be used for the measurement. |
| thresholdLevel | double | Specifies either the relative or absolute threshold power level based on the value of the thresholdType parameter. |
| thresholdType | RFmxSpecAnMXAmpmThresholdType | Specifies the reference for the power level used for thresholding. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.