Koncim: IBox, etc.
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using log4net;
|
||||
using TBF.UiBridge;
|
||||
using TBF.BenchControl;
|
||||
using TBF.Boxes;
|
||||
using TBF.Resources;
|
||||
using TBF.UiBridge;
|
||||
|
||||
namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
{
|
||||
@@ -107,7 +108,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
}
|
||||
while (!e.Contains(Event.BalanceDone));
|
||||
|
||||
float estimatedEndMass = mass.F + test.Volume;
|
||||
float estimatedEndMass = mass.Val + test.Volume;
|
||||
if (estimatedEndMass < outPath.Balance.Capacity * Constants.TankFullFactor)
|
||||
{
|
||||
goto set_flow; /// Enough room in the tank -> skip emptying
|
||||
@@ -152,7 +153,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
while (!e.Contains(Event.FlowReached));
|
||||
|
||||
int time = StateMachine.CurrentTime;
|
||||
float currentFlow = measuredFlow.F;
|
||||
float currentFlow = measuredFlow.Val;
|
||||
|
||||
/// Extract cameras from the current sensors path, add operations to the detection state
|
||||
IList<IOperation> measureOperations = new List<IOperation>();
|
||||
@@ -179,8 +180,8 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
while (!e.Contains(Event.BalanceDone));
|
||||
|
||||
tstRslt.TimeStart = DateTime.Now;
|
||||
tstRslt.MassStartRaw = stableMass.F;
|
||||
mass.F = stableMass.F;
|
||||
tstRslt.MassStartRaw = stableMass.Val;
|
||||
mass.Val = stableMass.Val;
|
||||
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Test_in_progress);
|
||||
@@ -221,19 +222,19 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
if (firstTime)
|
||||
{
|
||||
firstTime = false; /// Do the following only once
|
||||
tstRslt.TempInStart = tempIn.F;
|
||||
tstRslt.TempOutStart = tempOut.F;
|
||||
tstRslt.TempDivStart = tempDiv.F;
|
||||
tstRslt.PressInStart = pressIn.F;
|
||||
tstRslt.PressOutStart = pressOut.F;
|
||||
tstRslt.TempInStart = tempIn.Val;
|
||||
tstRslt.TempOutStart = tempOut.Val;
|
||||
tstRslt.TempDivStart = tempDiv.Val;
|
||||
tstRslt.PressInStart = pressIn.Val;
|
||||
tstRslt.PressOutStart = pressOut.Val;
|
||||
}
|
||||
|
||||
tstRslt.TempInEnd = tempIn.F;
|
||||
tstRslt.TempOutEnd = tempOut.F;
|
||||
tstRslt.TempDivEnd = tempDiv.F;
|
||||
tstRslt.PressInEnd = pressIn.F;
|
||||
tstRslt.PressOutEnd = pressOut.F;
|
||||
tstRslt.MassEndRaw = mass.F;
|
||||
tstRslt.TempInEnd = tempIn.Val;
|
||||
tstRslt.TempOutEnd = tempOut.Val;
|
||||
tstRslt.TempDivEnd = tempDiv.Val;
|
||||
tstRslt.PressInEnd = pressIn.Val;
|
||||
tstRslt.PressOutEnd = pressOut.Val;
|
||||
tstRslt.MassEndRaw = mass.Val;
|
||||
|
||||
AccumulateAveragedData();
|
||||
|
||||
@@ -273,7 +274,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
|
||||
}
|
||||
while (!e.Contains(Event.BalanceDone));
|
||||
///
|
||||
tstRslt.MassEndRaw = stableMass.F;
|
||||
tstRslt.MassEndRaw = stableMass.Val;
|
||||
tstRslt.TimeEnd = DateTime.Now;
|
||||
|
||||
//------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user