using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Xml; using Aitex.Core.Common.DeviceData; using Aitex.Core.RT.DataCenter; using Aitex.Core.RT.Event; using Aitex.Core.RT.IOCore; using Aitex.Core.RT.Log; using Aitex.Core.RT.SCCore; using Aitex.Core.RT.Tolerance; using Aitex.Core.Util; //namespace Aitex.Core.RT.Device.Unit //{ // public class IoCoolingControl : BaseDevice, IDevice // { // public IoCoolingControl(string module, XmlElement node) // { // base.Module = module; // base.Name = node.GetAttribute("id"); // base.Display = node.GetAttribute("display"); // base.DeviceID = node.GetAttribute("schematicId"); // _scEnableLeftTcAsControlTc = ParseScNodeBool("scEnalbeLeftTcAsControlTc", node); // _scMaxDifferenceTcValue = ParseScNodeDouble("scElectrodeTcDifferenceMaxValue", node); // _scManualProcessElectrodeCriticalTemperature = ParseScNodeDouble("scManualProcessElectrodeCriticalTemperature", node); // _leftTc = ParseDeviceNode("deviceLeftElectrodeTc", node); // _rightTc = ParseDeviceNode("deviceRightElectrodeTc", node); // _valveElectrodeWater = ParseDeviceNode("deviceElectrodeWaterValve", node); // _diLogicIsRfPoweringHeatupMode = ParseDiNode("diLogicIsRfPoweringHeatupMode", node); // _diLogicManualProcessRfPowering = ParseDiNode("diLogicManualProcessRfPowering", node); // } // public bool Initialize() // { // DATA.Subscribe(string.Format("Device.{0}.{1}", Module , Name), () => // { // AITCoolingControlData data = new AITCoolingControlData() // { // DeviceName = Name, // DeviceSchematicId = DeviceID, // DisplayName = Display, // ElectrodeTemperature = ElectrodeTemperatureFeedback, // }; // return data; // }, SubscriptionAttribute.FLAG.IgnoreSaveDB); // DEVICE.Register(String.Format("{0}.{1}", Name, AITCoolingControlOperation.SetElectrodeTemperature), (out string reason, int time, object[] param) => // { // reason = ""; // return true; // }); // return true; // } // public void SetCriticalElectrodeTemperature(double value) // { // _criticalElectrodeTemperature = value; // LOG.Write("Critical TC set to " + value); // } // public void Terminate() // { // } // public void Monitor() // { // } // public void Reset() // { // } // } //}