Defines the POWER_MEAS_SINE_ANALYZER structure.
The POWER_MEAS_SINE_ANALYZER can be used to analyze the input sine wave and calculates several parameters like RMS, Average and Frequency
Data Fields | |
float32_t | v |
Input: Voltage Sine Signal. More... | |
float32_t | i |
Input Current Signal. More... | |
float32_t | sampleFreq |
Input: Signal Sampling Freq. More... | |
float32_t | threshold |
Input: Voltage level corresponding to zero i/p. More... | |
float32_t | vRms |
Output: RMS Value. More... | |
float32_t | vAvg |
Output: Average Value. More... | |
float32_t | vEma |
Output: Exponential Moving Average Value. More... | |
float32_t | acFreq |
Output: Signal Freq. More... | |
float32_t | acFreqAvg |
Output: Signal Freq. More... | |
float32_t | iRms |
Output: RMS Value of current. More... | |
float32_t | pRms |
Output: RMS Value of input power. More... | |
float32_t | vaRms |
Output: RMS VA. More... | |
float32_t | powerFactor |
Output: powerFactor. More... | |
int16_t | zcd |
Output: Zero Cross detected. More... | |
float32_t | vSum |
Internal : running sum for vac calculation over one sine cycles. More... | |
float32_t | vSqrSum |
Internal : running sum for vacc square calculation over one sine cycle. More... | |
float32_t | iSqrSum |
Internal : running sum for Iacc_rms calculation over one sine cycle. More... | |
float32_t | acFreqSum |
Internal : running sum of acFreq. More... | |
float32_t | pSum |
Internal : running sum for Pacc_rms calculation over one sine cycle. More... | |
float32_t | vaSumMul |
Internal : running sum for Pacc_rms calculation over one sine cycle. More... | |
float32_t | vNorm |
Internal: Normalized value of the input voltage. More... | |
float32_t | iNorm |
Internal: Normalized value of the input current. More... | |
int16_t | prevSign |
Internal: Flag to detect ZCD. More... | |
int16_t | currSign |
Internal: Flag to detect ZCD. More... | |
int32_t | nSamples |
Internal: No of samples in one cycle of the sine wave. More... | |
int32_t | nSamplesMin |
Internal: Lowerbound for no of samples in one sine wave cycle. More... | |
int32_t | nSamplesMax |
Internal: Upperbound for no of samples in one sine wave cycle. More... | |
float32_t | inverse_nSamples |
Internal: 1/( No of samples in one cycle of the sine wave) More... | |
float32_t | sqrt_inverse_nSamples |
Internal: sqrt(1/( No of samples in one cycle of the sine wave)) More... | |
int16_t | slewPowerUpdate |
Internal: used to slew update of the power value. More... | |
float32_t | pRmsSumMul |
Internal: used to sum Pac value over multiple sine cycles (100) More... | |
int16_t | jitterCount |
Internal: used to store jitter information due to noise on input. More... | |
float32_t | emaFilterMultiplier |
Internal: multiplier value used for the exponential moving average filter. More... | |
float32_t POWER_MEAS_SINE_ANALYZER::v |
Input: Voltage Sine Signal.
float32_t POWER_MEAS_SINE_ANALYZER::i |
Input Current Signal.
float32_t POWER_MEAS_SINE_ANALYZER::sampleFreq |
Input: Signal Sampling Freq.
float32_t POWER_MEAS_SINE_ANALYZER::threshold |
Input: Voltage level corresponding to zero i/p.
float32_t POWER_MEAS_SINE_ANALYZER::vRms |
Output: RMS Value.
float32_t POWER_MEAS_SINE_ANALYZER::vAvg |
Output: Average Value.
float32_t POWER_MEAS_SINE_ANALYZER::vEma |
Output: Exponential Moving Average Value.
float32_t POWER_MEAS_SINE_ANALYZER::acFreq |
Output: Signal Freq.
float32_t POWER_MEAS_SINE_ANALYZER::acFreqAvg |
Output: Signal Freq.
float32_t POWER_MEAS_SINE_ANALYZER::iRms |
Output: RMS Value of current.
float32_t POWER_MEAS_SINE_ANALYZER::pRms |
Output: RMS Value of input power.
float32_t POWER_MEAS_SINE_ANALYZER::vaRms |
Output: RMS VA.
float32_t POWER_MEAS_SINE_ANALYZER::powerFactor |
Output: powerFactor.
int16_t POWER_MEAS_SINE_ANALYZER::zcd |
Output: Zero Cross detected.
float32_t POWER_MEAS_SINE_ANALYZER::vSum |
Internal : running sum for vac calculation over one sine cycles.
float32_t POWER_MEAS_SINE_ANALYZER::vSqrSum |
Internal : running sum for vacc square calculation over one sine cycle.
float32_t POWER_MEAS_SINE_ANALYZER::iSqrSum |
Internal : running sum for Iacc_rms calculation over one sine cycle.
float32_t POWER_MEAS_SINE_ANALYZER::acFreqSum |
Internal : running sum of acFreq.
float32_t POWER_MEAS_SINE_ANALYZER::pSum |
Internal : running sum for Pacc_rms calculation over one sine cycle.
float32_t POWER_MEAS_SINE_ANALYZER::vaSumMul |
Internal : running sum for Pacc_rms calculation over one sine cycle.
float32_t POWER_MEAS_SINE_ANALYZER::vNorm |
Internal: Normalized value of the input voltage.
float32_t POWER_MEAS_SINE_ANALYZER::iNorm |
Internal: Normalized value of the input current.
int16_t POWER_MEAS_SINE_ANALYZER::prevSign |
Internal: Flag to detect ZCD.
int16_t POWER_MEAS_SINE_ANALYZER::currSign |
Internal: Flag to detect ZCD.
int32_t POWER_MEAS_SINE_ANALYZER::nSamples |
Internal: No of samples in one cycle of the sine wave.
int32_t POWER_MEAS_SINE_ANALYZER::nSamplesMin |
Internal: Lowerbound for no of samples in one sine wave cycle.
int32_t POWER_MEAS_SINE_ANALYZER::nSamplesMax |
Internal: Upperbound for no of samples in one sine wave cycle.
float32_t POWER_MEAS_SINE_ANALYZER::inverse_nSamples |
Internal: 1/( No of samples in one cycle of the sine wave)
float32_t POWER_MEAS_SINE_ANALYZER::sqrt_inverse_nSamples |
Internal: sqrt(1/( No of samples in one cycle of the sine wave))
int16_t POWER_MEAS_SINE_ANALYZER::slewPowerUpdate |
Internal: used to slew update of the power value.
float32_t POWER_MEAS_SINE_ANALYZER::pRmsSumMul |
Internal: used to sum Pac value over multiple sine cycles (100)
int16_t POWER_MEAS_SINE_ANALYZER::jitterCount |
Internal: used to store jitter information due to noise on input.
float32_t POWER_MEAS_SINE_ANALYZER::emaFilterMultiplier |
Internal: multiplier value used for the exponential moving average filter.