/// <summary>
        /// 设置曝光时间
        /// </summary>
        /// <param name="exposeValue"></param>
        /// <returns></returns>
        public bool SetExpose(double exposeValue)
        {
            try
            {
                Framegrabber.SetFramegrabberParam("ExposureTimeAbs", exposeValue);
                return(true);
            }
            catch {  }
            try
            {
                Framegrabber.SetFramegrabberParam("ExposureTime", exposeValue);
                return(true);
            }
            catch { }

            return(false);
        }
Example #2
0
 public bool SetRotaryEncoderDirection(bool dir)
 {
     try
     {
         if (dir)
         {
             Framegrabber.SetFramegrabberParam("rotaryEncoderDirection", "CounterClockwise");
         }
         else
         {
             Framegrabber.SetFramegrabberParam("rotaryEncoderDirection", "Clockwise");
         }
         return(true);
     }
     catch
     {
         return(false);
     }
 }