Logging of a STOP command, ver.2.4.264.

This commit is contained in:
Milan Hanajik 2016-04-14 12:29:14 +02:00
parent 2d877877e2
commit 6efa998532
4 changed files with 28 additions and 4 deletions

View File

@ -49,5 +49,12 @@ namespace TBF.BenchControl
ValvesClose = new List<IValve>();
foreach (var vName in vClose) ValvesClose.Add((IValve)TbfComponents.FindComponent(vName, components));
}
public override string ToString()
{
return string.Format("{0} StopBF={1}",
Name,
(StopBFValve != null) ? StopBFValve.Name : "---");
}
}
}

View File

@ -41,5 +41,10 @@ namespace TBF.BenchControl
ValvesClose = new List<IValve>();
foreach (var vName in vClose) ValvesClose.Add((IValve)TbfComponents.FindComponent(vName, components));
}
public override string ToString()
{
return string.Format("{0} Pump={1}", Name, (Pump != null) ? Pump.Name : "---");
}
}
}

View File

@ -55,5 +55,15 @@ namespace TBF.BenchControl
ValvesClose = new List<IValve>();
foreach (var vName in vClose) ValvesClose.Add((IValve)TbfComponents.FindComponent(vName, components));
}
}
public override string ToString()
{
return string.Format("{0} RV={1}, Flowm.={2}, Div.={3}, Scale={4}",
Name,
(RegulValve != null) ? RegulValve.Name : "---",
(FlowMeter != null) ? FlowMeter.Name : "---",
(Diverter != null) ? Diverter.Name : "---",
(Balance != null) ? Balance.Name : "---");
}
}
}

View File

@ -1027,13 +1027,15 @@ namespace TBF.BenchControl.Sequences
if (test != null)
{
log.FatalFormat("Test information:");
log.FatalFormat("Process values:");
log.FatalFormat(" Method: {0}", test.Method);
log.FatalFormat(" Start time: {0}", TestStartTime.ToShortTimeString());
log.FatalFormat(" Test start time: {0}", TestStartTime.ToShortTimeString());
log.FatalFormat(" Feeding path: {0}", (inPath != null) ? inPath.ToString() : "none");
log.FatalFormat(" Bench path: {0}", (benchPath != null) ? benchPath.ToString() : "none");
log.FatalFormat(" Output path: {0}", (outPath != null) ? outPath.ToString() : "none");
log.FatalFormat(" Sensor path: {0}", (sensPath != null) ? sensPath.ToString() : "none");
if (inPath.Pump is IPump) log.FatalFormat(" Pump power: {0}%", (inPath.Pump as IPump).Power);
else if (inPath.Pump is IValve) log.FatalFormat(" Feeding valve: {0}", (inPath.Pump as IValve).State ? "open" : "close");
if (outPath.RegulValve is IRegulValve) log.FatalFormat(" Regulation valve position: {0}%", outPath.RegulValve.Position);
log.FatalFormat(" Flow: {0}", RefFlow);
log.FatalFormat(" Mass: {0}", Mass);
log.FatalFormat(" Start mass: {0}", StartMass);