2.1.4.11 DRV_MCMETROLOGY_StartHarmonicAnalysis Function
C
Returns
bool DRV_MCMETROLOGY_StartHarmonicAnalysis(
uint32_t harmonicNum,
DRV_MCMETROLOGY_HARMONIC *pHarmonicResponse
);SummaryStarts the harmonic Analysis process.
DescriptionThis 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| Param | Description |
|---|---|
| harmonicNum | Number of harmonic for analysis. |
| pHarmonicResponse | Pointer to the harmonic analysis struct data to store the harmonic data result. |
True if Harmonic Analysis is successfully triggered. Otherwise False.
Example DRV_MCMETROLOGY_HARMONIC harmonicAnalysisResponse;
if (DRV_MCMETROLOGY_StartHarmonicAnalysis(3, &harmonicAnalysisResponse))
{
waitForResponse();
}RemarksNone.
