Unit Pstcalc
Description
Uses
Overview
Functions and Procedures
function PstRMS(var PstResult: pDoubleArray; pVoltages: pdoubleArray; Freqbase: Double; NcyclesperSample, Npts, Lamp: Integer): Integer; |
procedure FlickerMeter(N: Integer; fBase: Double; vBase: Double; pT: pSingleArray; var pRms: pSingleArray; var pPst: pSingleArray); |
Description
Functions and Procedures
function PstRMS(var PstResult: pDoubleArray; pVoltages: pdoubleArray; Freqbase: Double; NcyclesperSample, Npts, Lamp: Integer): Integer; |
IEC868 FlickerMeter Adapted from Jeff Smith's original C++ code note: the scaling factor being used has been corrected. It is scaling the output of Block 4 to 1.0 for the values given in Table 1 and Table 2. The last table in the std should be used for checking Pst Note: allocates result array of doubles!!! |
procedure FlickerMeter(N: Integer; fBase: Double; vBase: Double; pT: pSingleArray; var pRms: pSingleArray; var pPst: pSingleArray); |
returns number of Pst elements computed in PstResult array That is the number of 10-minute intervals will automatically clean up and reallocate PstStruct when this function is called Init PstResult to Nil in calling routine. Dispose of result in colling routine when done with it. input: N points of RMS voltage in pT, pRms fBase (50 or 60) determines the weighting coefficients vBase to normalize the RMS voltage to per-unit pre-allocate pPst to hold the Pst results at 10-minute intervals output: pRms overwritten with Block 4 flicker output pPst written with Block 5 Pst at 10-minute intervals |
Generated by PasDoc 0.16.0.