コード例 #1
0
        public byte                   nNetState;        // 8位,低6位有效,低6位代表6个IPM,0 正常,1故障

        public stGlobal(bool IsOK)
        {
            nSubsysId        = 0;
            sys              = new stSysConfig(true);
            grade            = new stGradeInfo(true);
            gexit            = new stGlobalExitInfo(true);
            gweight          = new stGlobalWeightBaseInfo(true);
            exit             = new stExitInfo[ConstPreDefine.MAX_CHANNEL_NUM];
            paras            = new stParas[ConstPreDefine.MAX_IPM_NUM];
            weights          = new stWeightBaseInfo[ConstPreDefine.MAX_CHANNEL_NUM];
            spotdetectthresh = new stSpotDetectThresh[ConstPreDefine.MAX_IPM_NUM];
            for (int i = 0; i < ConstPreDefine.MAX_CHANNEL_NUM; i++)
            {
                exit[i]    = new stExitInfo(true);
                weights[i] = new stWeightBaseInfo(true);
            }

            for (int i = 0; i < ConstPreDefine.MAX_IPM_NUM; i++)
            {
                paras[i]            = new stParas(true);
                spotdetectthresh[i] = new stSpotDetectThresh(true);
            }
            nNetState = 0;
        }
コード例 #2
0
        public stExitInfo  b;    //出口信息

        public stVolveTest(bool IsOK)
        {
            a = new stTestParam();
            b = new stExitInfo(true);
        }