⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pngains.h

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -