SetHarmonicEnabled(string, RFmxSpecAnMXHarmHarmonicEnabled)
- Updated2025-10-13
- 1 minute(s) read
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
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies the harmonic number. Example: "harmonic0". You can use the BuildHarmonicString2(string, int) method to build the selector string. |
| value | RFmxSpecAnMXHarmHarmonicEnabled | 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.