Browse Source

V2.0.6B 张力读取延迟优化

MainB
CPL 2 years ago
parent
commit
199893d47f
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      halftoneproject-master/BanBoShi/SysCtrl/SysMgr.cs
  2. +1
    -1
      halftoneproject-master/BanBoShi/SysUI/ProcessStep/Prop/TensionProp.cs

+ 3
- 2
halftoneproject-master/BanBoShi/SysCtrl/SysMgr.cs View File

@@ -4403,7 +4403,8 @@ namespace MaiMuAOI.SysCtrl
tempDataList = new List<double>(); tempDataList = new List<double>();
for (int i = 0; i < DataCnt; i++) for (int i = 0; i < DataCnt; i++)
{ {
Thread.Sleep(DelayTime);
//Thread.Sleep(DelayTime);
Thread.Sleep(100);
tensionValue = TensionGetValueNewStep(); tensionValue = TensionGetValueNewStep();
if (tensionValue < 0) if (tensionValue < 0)
{ {
@@ -4512,7 +4513,7 @@ namespace MaiMuAOI.SysCtrl
} }
Thread.Sleep(100); Thread.Sleep(100);
} }
Thread.Sleep(DelayTime);
#endregion #endregion
break; break;
case "Height": case "Height":


+ 1
- 1
halftoneproject-master/BanBoShi/SysUI/ProcessStep/Prop/TensionProp.cs View File

@@ -14,7 +14,7 @@ namespace MaiMuAOI.SysUI.ProcessStep.Prop
{ {
[PropertyOrder(1), Browsable(true), Category("1 测试"), DisplayName("1.1 测试次数"), Description("需要进行的张力测试次数")] [PropertyOrder(1), Browsable(true), Category("1 测试"), DisplayName("1.1 测试次数"), Description("需要进行的张力测试次数")]
public int TestCnt { get; set; } public int TestCnt { get; set; }
[PropertyOrder(2), Browsable(true), Category("2 参数"), DisplayName("2.1 读取延时(ms)"), Description("测试读取数据之延时ms")]
[PropertyOrder(2), Browsable(true), Category("2 参数"), DisplayName("2.1 读取延时(ms)"), Description("测试读取数据之延时ms")]
public int DelayTime { get; set; } public int DelayTime { get; set; }
[PropertyOrder(3), Browsable(true), Category("2 参数"), DisplayName("2.2 读取N个数据"), Description("测试读取多少数据")] [PropertyOrder(3), Browsable(true), Category("2 参数"), DisplayName("2.2 读取N个数据"), Description("测试读取多少数据")]
public int DataCnt { get; set; } public int DataCnt { get; set; }


Loading…
Cancel
Save