2.1.4.11 DRV_MCMETROLOGY_StartHarmonicAnalysis Function

C
bool DRV_MCMETROLOGY_StartHarmonicAnalysis(
  uint32_t harmonicNum,
  DRV_MCMETROLOGY_HARMONIC *pHarmonicResponse
);
Summary

Starts the harmonic Analysis process.

Description

This routine configures the metrology library to enable the harmonics computation and to calculate the data corresponding to the harmonic active in harmonicNum. Then, the metrology driver receives the data from the metrology library and computes the RMS currents and voltages of the selected harmonic.

Parameters
ParamDescription
harmonicNumNumber of harmonic for analysis.
pHarmonicResponsePointer to the harmonic analysis struct data to store the harmonic data result.
Returns

True if Harmonic Analysis is successfully triggered. Otherwise False.

Example
    DRV_MCMETROLOGY_HARMONIC harmonicAnalysisResponse;

    if (DRV_MCMETROLOGY_StartHarmonicAnalysis(3, &harmonicAnalysisResponse))
    {
        waitForResponse();
    }
Remarks

None.