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

Syntax

Namespace: NationalInstruments.RFmx.SpecAnMX

public int SetHarmonicEnabled(string selectorString, RFmxSpecAnMXHarmHarmonicEnabled value)

Remarks

This method maps to the RFmxSpecAn_HarmSetHarmonicEnabled() 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.

valueRFmxSpecAnMXHarmHarmonicEnabled

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

Returns

Returns the status code of this method. The status code either indicates success or describes an error or warning condition.