Q_ref_mean and many other result items added, ver. 2.12.563
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user