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

📄 pqdtypes.h

📁 PQDIF软件包(SDK,Software Development Kit),它能转换、生成并且显示PQDIF文件.对于开发电力系统的数据输出非常有用。
💻 H
字号:
/*---------------------------------------------------------------------------
//
//  PQDTypes.h - Power Quality Data Manager Data Type Definitions.
//
//
//  Copyright (C) 1992-1993, Electrotek Concepts, Inc. All Rights Reserved.
//
//
//  This module defines the data types used by Power Quality Data
//  Manager applications and their clients.
*/      

#ifndef PQDTypes_h

    #define PQDTypes_h


    /* Use conventional "C" conventions to permit use by a wide
    range of compilers. */
    #ifdef __cplusplus
        extern "C" {            
    #endif
    
    
    /* Data format codes. */
    typedef enum
        {
    
        pqdFmtNone,             /* No data (or undefined.) */
        pqdFmtInt16,            /* 16 bit signed integer. */
        pqdFmtInt32,            /* 32 bit signed integer (not supported.) */
        pqdFmtFloat32,          /* 32 bit IEEE floating point value. */
        pqdFmtFloat64           /* 64 bit IEEE floating point value. */
        
        } PQDFormat;
        
        
    /* Phase codes. */
    typedef enum
        {
    
        pqdPhaseNone,           /* No phase (or undefined.) */
        
        pqdPhaseA,              /* Three phase, Y configuration. */
        pqdPhaseB,
        pqdPhaseC,
        
        pqdPhaseAB,             /* Three phase, Delta configuration. */
        pqdPhaseBC,
        pqdPhaseCA,
        
        pqdPhaseNeutral,        /* Neutral. */
        
        
        pqdPhaseResidual,       /* Residual (derived). */
        pqdPhaseNet,            /* Net (derived). */
        
        pqdPhaseAll,            /* Single phase or combined three phase. */
        
        pqdPhaseMaxPhase        /* The maximum number of phase types. */
        
        } PQDPhase;
        
    
    /* Event types codes. */
    typedef enum
        {
    
        pqdEvtNone,             /* None, undefined. */
        pqdEvtTriggered,        /* Triggered events. */
        pqdEvtSampled,          /* Sampled events. */
        
        pqdEvtMaxEvt            /* The maximum number of event types. */
        
        } PQDEventType;
    
    
    /* Quantity codes. */
    typedef enum
        {
    
        pqdQtyNone,             /* No quantity. */
        pqdQtyVoltage,          /* Voltage in volts. */
        pqdQtyCurrent,          /* Current in amps. */
        pqdQtyPower,            /* Power in watts. */
        pqdQtyQ,                /* Reactive power in VARs */
        pqdQtyS,                /* Apparent power in VA */
        pqdQtyPF,               /* Power factor */
        pqdQtyDF,               /* Displacement factor */
        pqdQtyTemperature,      /* Temperature in degrees C. */
        pqdQtyEnergy,           /* Energy in joules. */
        
        pqdQtyMaxQty            /* The maximum number of quantities. */
                        
        } PQDQuantity;
    
    
    /* Characteristic codes. */
    typedef enum
        {

        pqdChNone,              /* No characterization. */
        pqdChValue,             /* Uncharacterized, raw value. */
        pqdChPeak,              /* Peak value. */
        pqdChRMS,               /* RMS value. */
        pqdChHRMS,              /* Harmonic RMS. */
        pqdChTHD,               /* Total harmonic distortion (%). */
        pqdChEvenTHD,           /* Even harmonic distortion (%). */
        pqdChOddTHD,            /* Odd harmonic distortion (%). */
        pqdChFreq,              /* Frequency in Hz. */
        pqdChHMagnitude,        /* Harmonic magnitude. */
        pqdChHPhase,            /* Harmonic phase angle (radians.) */
        pqdChCrestFactor,       /* Crest factor. */
        pqdChFormFactor,        /* Form factor. */
        pqdChArithSum,          /* Arithmetic sum. */
        pqdChTIFIT,             /* TIF/IF. */
        pqdChTID,               /* TID. */  
        pqdChV0V1Imb,           /* V0/V1 Imbalance (%). */
        pqdChV2V1Imb,           /* V2/V1 Imbalance (%). */
        
        pqdChMaxCh              /* The maximum number of characteristics. */
                                
        } PQDCharacteristic;
 
        
    /* Date/Time record. Note: all times are in GMT. */
    typedef struct
        {
        
        /* Date in days since December 31, 1899. */
        long date;
        
        /* Time of day in milliseconds. */
        long time;
        
        } PQDDateTime;
    
    
    /* Wave Fault classification. */
    typedef enum
        {

        pqdWFNone,              /* None, undefined. */
            
        pqdWFImpulsive = 1,     /* Impulsive. */
        pqdWFOscillatory,       /* Oscillatory. */
       
        pqdWFMaxWF              /* The maximum number of Wave Fault types. */
        
        } PQDWaveFaultType;


    /* Site name string length (less null terminator.) */
    #define PQDSiteNameLength 8


    /* Site description string length (less null terminator.) */
    #define PQDSiteDescLength 127


    #ifdef __cplusplus
        }                       
    #endif

    
#endif

⌨️ 快捷键说明

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