Koncim: IBox, etc.

This commit is contained in:
Milan Hanajik
2014-07-31 17:04:09 +02:00
parent 9a9a09f16d
commit 66feec63de
43 changed files with 749 additions and 287 deletions
@@ -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;
//------------------------------------------------