领胜LDS 键盘AOI检测项目
src/Bro.Device.Gocator/GocatorConfig.cs
@@ -24,6 +24,7 @@
        [Category("计算设置")]
        [Description("true:计算时使用加速器,false:不使用加速器")]
        [DefaultValue(false)]
        [Browsable(false)]
        public bool IsUseAccelerator { get; set; } = false;
        [Category("拍摄设置")]
@@ -37,15 +38,25 @@
        [DefaultValue(1000)]
        public int SnapshotTimeout { get; set; } = 1000;
        //[Category("采图模式")]
        //[Description("是否硬触发模式。true:硬触发;false:软触发")]
        //[DisplayName("硬触发")]
        //public bool IsHardwareTrigger { get; set; } = false;
        [Category("采图模式")]
        [Description("异步采图时,是否硬触发模式。true:硬触发;false:软触发")]
        [DisplayName("硬触发")]
        public bool IsHardwareTrigger { get; set; } = false;
        [Category("采图模式")]
        [Description("true:异步/被动采图模式  false:同步/主动采图模式")]
        [DefaultValue(false)]
        public bool IsAsyncMode { get; set; } = false;
        [Category("数据位配置")]
        [Description("图像数据位数,2位/4位")]
        public GocatorDataByteNums ByteNums { get; set; } = GocatorDataByteNums.Byte2;
    }
    public enum GocatorDataByteNums
    {
        Byte2 = 2,
        Byte4 = 4,
    }
    [Device("Gocator", "Gocator激光扫描仪", EnumHelper.DeviceAttributeType.OperationConfig)]