ConfigureHarmonic(string, int, double, RFmxSpecAnMXHarmHarmonicEnabled, double)
- Updated2025-10-13
- 1 minute(s) read
Configures the harmonic frequency, acquisition bandwidth, and acquisition time for the harmonic, when you set the SetAutoSetupEnabled(string, RFmxSpecAnMXHarmAutoHarmonicsSetupEnabled) method to False.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int ConfigureHarmonic(string selectorString, int harmonicOrder, double harmonicBandwidth, RFmxSpecAnMXHarmHarmonicEnabled harmonicEnabled, double harmonicMeasurementInterval)
Remarks
This method maps to the RFmxSpecAn_HarmCfgHarmonic() function in C.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies the harmonic number. Example: "harmonic0". You can use the BuildHarmonicString2(string, int) method to build the selector string. |
| harmonicOrder | int | Specifies the order of the harmonic. |
| harmonicBandwidth | double | Specifies the resolution bandwidth, in hertz (Hz), for the harmonic. Example: "harmonic0". You can use the BuildHarmonicString2(string, int) method to build the selector string. |
| harmonicEnabled | RFmxSpecAnMXHarmHarmonicEnabled | Specifies whether to enable a particular harmonic for measurement. Only the enabled Harmonics are used to measure the total harmonic distortion (THD). |
| harmonicMeasurementInterval | double | Specifies the acquisition time, in seconds, for the harmonic. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.