增加 兜底时记录订货号 增加常量 app.config配置文件
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
@@ -30,8 +31,13 @@ namespace MesWork
|
||||
private static readonly ConcurrentDictionary<string, CurveCollectorState> _curveCollectors
|
||||
= new ConcurrentDictionary<string, CurveCollectorState>(StringComparer.OrdinalIgnoreCase);
|
||||
|
||||
private const int CurveCollectorSampleIntervalMs = 200;
|
||||
private const int CurveStableWindowSize = 20;
|
||||
private static readonly int CurveCollectorSampleIntervalMs = int.TryParse(
|
||||
ConfigurationManager.AppSettings["CurveCollectorSampleIntervalMs"], out int _sampleIntervalMs)
|
||||
? _sampleIntervalMs : 200;
|
||||
|
||||
private static readonly int CurveStableWindowSize = int.TryParse(
|
||||
ConfigurationManager.AppSettings["CurveStableWindowSize"], out int _stableWindowSize)
|
||||
? _stableWindowSize : 20;
|
||||
|
||||
/// <summary>
|
||||
/// 允许工作后启动曲线采集,每个工位同一时间只保留一个采集段。
|
||||
|
||||
Reference in New Issue
Block a user