更改现场提出的小需求
This commit is contained in:
@@ -74,11 +74,11 @@ namespace CapMachine.Wpf.Services
|
||||
//TxvFrTempTag = TagManager.DicTags.GetValueOrDefault("膨胀阀前温度[℃]")!;
|
||||
//TxvFrPressTag = TagManager.DicTags.GetValueOrDefault("膨胀阀前压力[BarA]")!;
|
||||
|
||||
if (TagManager.TryGetShortTagByName("膨胀阀前温度[℃]", out ShortValueTag? TxvFrTempShortTag))
|
||||
if (TagManager.TryGetShortTagByName("阀前温度T3[℃]", out ShortValueTag? TxvFrTempShortTag))
|
||||
{
|
||||
TxvFrTempTag = TxvFrTempShortTag!;
|
||||
}
|
||||
if (TagManager.TryGetShortTagByName("膨胀阀前压力[BarA]", out ShortValueTag? TxvFrPressShortTag))
|
||||
if (TagManager.TryGetShortTagByName("阀前压力P3[BarA]", out ShortValueTag? TxvFrPressShortTag))
|
||||
{
|
||||
TxvFrPressTag = TxvFrPressShortTag!;
|
||||
}
|
||||
@@ -89,11 +89,11 @@ namespace CapMachine.Wpf.Services
|
||||
//Superheat = TagManager.DicTags.GetValueOrDefault("过热度[K]");
|
||||
//Subcool = TagManager.DicTags.GetValueOrDefault("过冷度[K]");
|
||||
|
||||
if (TagManager.TryGetShortTagByName("过热度[K]", out ShortValueTag? SuperheatShortTag))
|
||||
if (TagManager.TryGetCalcTagByName("过热度[K]", out CalcTag? SuperheatShortTag))
|
||||
{
|
||||
Superheat = SuperheatShortTag!;
|
||||
}
|
||||
if (TagManager.TryGetShortTagByName("过冷度[K]", out ShortValueTag? SubcoolShortTag))
|
||||
if (TagManager.TryGetCalcTagByName("过冷度[K]", out CalcTag? SubcoolShortTag))
|
||||
{
|
||||
Subcool = SubcoolShortTag!;
|
||||
}
|
||||
@@ -101,7 +101,7 @@ namespace CapMachine.Wpf.Services
|
||||
SuperHeatCoolConfig.FluidsPath = ConfigHelper.GetValue("FluidsPath");
|
||||
SuperHeatCoolConfig.Cryogen = ConfigHelper.GetValue("Cryogen");
|
||||
|
||||
//RtScanDeviceStart();
|
||||
RtScanDeviceStart();
|
||||
}
|
||||
|
||||
|
||||
@@ -142,12 +142,12 @@ namespace CapMachine.Wpf.Services
|
||||
/// <summary>
|
||||
/// 过热度
|
||||
/// </summary>
|
||||
public ShortValueTag Superheat { get; set; }
|
||||
public CalcTag Superheat { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 过冷度
|
||||
/// </summary>
|
||||
public ShortValueTag Subcool { get; set; }
|
||||
public CalcTag Subcool { get; set; }
|
||||
|
||||
|
||||
///// <summary>
|
||||
@@ -264,13 +264,13 @@ namespace CapMachine.Wpf.Services
|
||||
IRefProp64.SATPdll(ref p, x, ref kph, ref te, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen);
|
||||
|
||||
if (iErr == 0)
|
||||
Superheat.PVModel.EngValue = InhTempTag.PVModel.EngValue - (te - 273.15);
|
||||
Superheat.PVModel.EngValue = Math.Round(InhTempTag.PVModel.EngValue - (te - 273.15), 3) ;
|
||||
//textBox5.Text = String.Format("{0:n4}", Convert.ToDouble(textBox1.Text) - (te - 273.15));//textBox1 Comp.吸气温度(℃)
|
||||
else
|
||||
Superheat.PVModel.EngValue = 0;
|
||||
IRefProp64.SATPdll(ref p1, x, ref kph, ref te1, ref Dl, ref Dv, xliq, xvap, ref iErr, ref herr, ref herrLen);
|
||||
if (iErr == 0)
|
||||
Subcool.PVModel.EngValue = TxvFrTempTag.PVModel.EngValue - (te1 - 273.15);//textBox4 Evap.膨胀阀前温度(℃)
|
||||
Subcool.PVModel.EngValue = Math.Round(TxvFrTempTag.PVModel.EngValue - (te1 - 273.15), 3);//textBox4 Evap.膨胀阀前温度(℃)
|
||||
//GuoLengDu = (te1 - 273.15) - ListKRLogCellValue.Find(a => a.Name == "膨胀阀前温度").Value;//textBox4 Evap.膨胀阀前温度(℃)
|
||||
//textBox6.Text = String.Format("{0:n4}", Convert.ToDouble(textBox4.Text) - (te1 - 273.15));//textBox4 Evap.膨胀阀前温度(℃)
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user