ConfigureHarmonicArray(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 ConfigureHarmonicArray(string selectorString, int[] harmonicOrder, double[] harmonicBandwidth, RFmxSpecAnMXHarmHarmonicEnabled[] harmonicEnabled, double[] harmonicMeasurementInterval)
Remarks
This method maps to the RFmxSpecAn_HarmCfgHarmonicArray() 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. |
| harmonicOrder | int[] | Specifies an array representing the order of the harmonic. |
| harmonicBandwidth | double[] | Specifies an array representing the resolution bandwidth, in hertz (Hz), for the harmonic. |
| harmonicEnabled | RFmxSpecAnMXHarmHarmonicEnabled[] | Specifies an array representing whether to enable a particular harmonic for measurement. Only the enabled Harmonics are used to measure the total harmonic distortion (THD). |
| harmonicMeasurementInterval | double[] | Specifies an array representing 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.