From 1f2fa3f54d4a7b5a2f601c4c947a06476342e3bd Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期五, 22 一月 2021 09:23:06 +0800 Subject: [PATCH] 1. gocator驱动将system.stop移到system.ReceiveData之后 2. 修改测量完成后状态切换逻辑,避免安全光线等干扰 3. 添加设备异常输出日志记录 4. 产品结果输出时做硬盘文件记录 --- src/Bro.Device.Gocator/GocatorConfig.cs | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/Bro.Device.Gocator/GocatorConfig.cs b/src/Bro.Device.Gocator/GocatorConfig.cs index b6d73ac..40ec8ba 100644 --- a/src/Bro.Device.Gocator/GocatorConfig.cs +++ b/src/Bro.Device.Gocator/GocatorConfig.cs @@ -24,6 +24,7 @@ [Category("璁$畻璁剧疆")] [Description("true锛氳绠楁椂浣跨敤鍔犻�熷櫒锛宖alse锛氫笉浣跨敤鍔犻�熷櫒")] [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("鏄惁纭Е鍙戞ā寮忋�倀rue锛氱‖瑙﹀彂锛沠alse锛氳蒋瑙﹀彂")] - //[DisplayName("纭Е鍙�")] - //public bool IsHardwareTrigger { get; set; } = false; + [Category("閲囧浘妯″紡")] + [Description("寮傛閲囧浘鏃讹紝鏄惁纭Е鍙戞ā寮忋�倀rue锛氱‖瑙﹀彂锛沠alse锛氳蒋瑙﹀彂")] + [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)] -- Gitblit v1.8.0