using Aitex.Core.RT.SCCore; using Aitex.Core.Util; using MECF.Framework.Common.Equipment; using System.Collections.Generic; using System.IO; using System.Xml.Linq; using System.Xml.Serialization; namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.GasFlow { [XmlType(typeName: "PMGsaFlow")] public class PMAllGsa { /// /// PM腔体中气体 /// [XmlElement("GasFlowUnit")] public List GasFlowUnitList { get; set; } /// /// 初始化单个气体,设置模块名称和对应气体的流量系数,注册界面要显示的数值 /// /// public void Initialize(string moduleName) { foreach (var unit in GasFlowUnitList) { unit.ModuleName= moduleName; unit.Initialize(); } var _thread = new PeriodicJob(1000, OnTimer, $"{moduleName}.ModuleGsaFlow", true); } private bool OnTimer() { foreach (var Unit in GasFlowUnitList) { Unit.GetGasFlowFeedBack(); } return true; } } }