Tests when test volume exceeds the tank capacity cannot be executed, an error message appears.
This commit is contained in:
+8
@@ -75,6 +75,14 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
|
||||
int flowSetTime0 = StateMachine.Time;
|
||||
|
||||
|
||||
if (test.Volume >= outPath.Balance.Capacity * Constants.TankFullFactor)
|
||||
{
|
||||
Bridge.OnError(this, Strings.Test_volume_exceeds_the_scale_capacity);
|
||||
retVal = Event.Error;
|
||||
goto stopTest;
|
||||
}
|
||||
|
||||
|
||||
///
|
||||
/// Optionally display prompt to emerge temperature meters to appropriate baths for heat meters test
|
||||
///
|
||||
|
||||
+7
@@ -124,6 +124,13 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
|
||||
//------------------------------------------------
|
||||
Bridge.OnActivity(this, Strings.Checking_tank_capacity);
|
||||
//------------------------------------------------
|
||||
if (test.Volume >= outPath.Balance.Capacity * Constants.TankFullFactor)
|
||||
{
|
||||
Bridge.OnError(this, Strings.Test_volume_exceeds_the_scale_capacity);
|
||||
retVal = Event.Error;
|
||||
goto stopTest;
|
||||
}
|
||||
|
||||
bool emptyTheTank = test.Emptying;
|
||||
|
||||
if (!emptyTheTank) /// If condition met => skip measuring and force emptying
|
||||
|
||||
Reference in New Issue
Block a user