1.1.3.4.24 DRV_METROLOGY_StartHarmonicAnalysis Function

C

void DRV_METROLOGY_StartHarmonicAnalysis(
  uint8_t harmonicNum, 
  DRV_METROLOGY_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 number n. Then, the metrology driver receives the data from the metrology library and computes the RMS currents and voltages of the selected harmonic.

Parameters

ParamDescription
harmonicNumHarmonic number.
pHarmonicResponsePointer to the harmonic analysis struct data to store the harmonic data result.

Returns

None.

Example

    DRV_METROLOGY_HARMONIC harmonicAnalysisResponse;
    
    DRV_METROLOGY_StartHarmonicAnalysis(3, &harmonicAnalysisResponse);

Remarks

None.