AutoLevel(string, double, out double)
- Updated2025-10-13
- 2 minute(s) read
Examines the input signal to calculate the peak power level and sets it as the value of the SetReferenceLevel(string, double) method. Use this method to calculate an approximate setting for the reference level.
Syntax
Namespace: NationalInstruments.RFmx.Cdma2kMX
public int AutoLevel(string selectorString, double measurementInterval, out double referenceLevel)
Remarks
Resets the mixer level, mixer level offset, and IF output power offset.
Sets the starting reference level to the maximum reference level supported by the device based on the current RF attenuation, mechanical attenuation, and preamplifier enabled settings.
Iterates to adjust the reference level based on the input signal peak power.
Uses immediate triggering and restores the trigger settings back to user setting after the execution.
You can also specify the starting reference level using the SetAutoLevelInitialReferenceLevel(string, double) method.
When using PXIe-5663/5665/5668R devices, NI recommends that you set an appropriate value for mechanical attenuation before calling the RFmxCDMA2k Auto Level method. Setting an appropriate value for mechanical attenuation reduces the number of times the attenuator settings are changed by this method; thus reducing wear and tear, and maximizing the life time of the attenuator.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Pass an empty string. The signal name that is passed when creating the signal configuration is used. |
| measurementInterval | double | Specifies the acquisition length. This value is expressed in seconds. Use this value to compute the number of samples to acquire from the signal analyzer. |
| referenceLevel | out double | Upon return, contains the estimated peak power level of the input signal. This value is expressed in dBm for RF devices and Vpk-pk for baseband devices. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.