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

NameTypeDescription
selectorStringstring

Specifies the harmonic number. Example: "harmonic0". You can use the BuildHarmonicString2(string, int) method to build the selector string.

harmonicOrderint

Specifies the order of the harmonic.

harmonicBandwidthdouble

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.

harmonicEnabledRFmxSpecAnMXHarmHarmonicEnabled

Specifies whether to enable a particular harmonic for measurement. Only the enabled Harmonics are used to measure the total harmonic distortion (THD).

harmonicMeasurementIntervaldouble

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.