pngains.h

来自「PQDIF软件包(SDK,Software Development Kit),它」· C头文件 代码 · 共 42 行

H
42
字号
#ifndef PNGAINS_DEF
#define PNGAINS_DEF

/*
** Base class for PQNode Gain caclulations including voltage preferencing.
**   Gains include Tranducer ratios, Voltage Preference, a/d gains for
**   waveforms and finally a Time Domain gain that is used for time domain
**   data displayed with perunit or percent preference.
*/


#include "pndsdef.h"
#include "pndatprf.h"

class PQNodeGains
    {
    private:
        BOOL bCalced;
        float fBaseV;
        float fTimeDomain;
        float vfatod[8];
        float vfTransducer[8];
        BOOL CalcWaveformGains(WORD wAtoDFlags);
        BOOL CalcChannelGains(PNGENERAL *pInfo);

    protected:

    public:
        PQNodeGains(PNGENERAL *pInfo,WORD wADGainFlag);
        float GetChanRMSGain(int iChannel);
        float GetChanTDPrefGain(int iChannel,VOLTDISPLAYS VoltPref = VD_ACTUAL);
        float GetChanPrefGain(int iChannel,VOLTDISPLAYS VoltPref = VD_ACTUAL);
        float GetChanADGain(int iChannel);
        float GetChanNoiseFloor(int iChannel,VOLTDISPLAYS VoltPref = VD_ACTUAL);
        float GetChanFreqNoiseFloor(int iChannel,VOLTDISPLAYS VoltPref = VD_ACTUAL);
        float GetBaseV() { return fBaseV;}
    };

BOOL IsHighGain(int iChan,BYTE byGainFlags);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?