Q_ref_mean and many other result items added, ver. 2.12.563

This commit is contained in:
Milan Hanajik
2017-05-19 11:29:04 +02:00
parent 2387ab28fa
commit 784ebcb1d6
26 changed files with 248 additions and 111 deletions
@@ -93,8 +93,13 @@ namespace TBF.BenchControl.Sequences
public static Statistics VolumeForEnergy = new Statistics();
public static int lastEnergyUpdateTime;
protected static void ClearAllStatistics()
public static int machineTimeStart;
public static int lastMachineTime;
protected static void ClearAllStatistics(int machineTime)
{
lastMachineTime = machineTimeStart = machineTime;
AmbTempStat.Clear();
AmbPressStat.Clear();
AmbHumiStat.Clear();
@@ -113,8 +118,10 @@ namespace TBF.BenchControl.Sequences
lastEnergyUpdateTime = 0;
}
protected static void UpdateAllStatistics()
protected static void UpdateAllStatistics(int machineTime)
{
int timeDelta = machineTime - lastMachineTime;
AmbTempStat.Update(AmbTemp);
AmbPressStat.Update(AmbPress);
AmbHumiStat.Update(AmbHumi);
@@ -124,13 +131,19 @@ namespace TBF.BenchControl.Sequences
PressUpStat.Update(PressUp);
PressDownStat.Update(PressDown);
PressDeltaStat.Update(PressDelta);
RefFlowStat.Update(RefFlow);
if (machineTime - machineTimeStart <= 5) /// Wait until flow is steady
{
RefFlowStat.Update(RefFlow);
}
if (BatchRslts.Batch.HeatMeter)
{
TempRefHiStat.Update((TempRefHi1.Val + TempRefHi2.Val) / 2);
TempRefLoStat.Update((TempRefLo1.Val + TempRefLo2.Val) / 2);
}
lastMachineTime = machineTime;
}
}
}