Ejemplo n.º 1
0
        protected override void GetCameraSettingData()
        {
            try
            {
                //long max, min, cur;

                MVGigE.MVGetGainRange(m_hCam, out gainMin, out gainMax);
                MVGigE.MVGetGain(m_hCam, out gainCur);
                gainUnit = "";

                shuterUnit = "us";


                double pExpMin;
                double pExpMax;
                MVGigE.MVGetExposureTimeRange(m_hCam, out pExpMin, out pExpMax);

                double pExposuretime;
                MVGigE.MVGetExposureTime(m_hCam, out pExposuretime);
                shuterMin = (long)pExpMin;
                shuterMax = (long)pExpMax;
                shuterCur = (long)pExposuretime;

                uint pMin;
                uint pMax;
                MVGigE.MVGetTriggerDelayRange(m_hCam, out pMin, out pMax);
                triggerDelayAbsMin = pMin;
                triggerDelayAbsMax = pMax;

                uint pDelay_us;
                MVGigE.MVGetTriggerDelay(m_hCam, out pDelay_us);
                triggerDelayAbs = pDelay_us;

                lineDebouncerTimeAbsMin = 0;
                lineDebouncerTimeAbsMax = 5000;
                lineDebouncerTimeAbs    = 0;
            }
            catch (Exception ex)
            {
                Util.WriteLog(this.GetType(), ex);
                Util.Notify("相机设置信息获取异常");
            }
        }