Tests when test volume exceeds the tank capacity cannot be executed, an error message appears.

This commit is contained in:
Milan Hanajik
2017-03-10 13:10:57 +01:00
parent 20fce538de
commit 87bc0131cf
5 changed files with 30 additions and 0 deletions
@@ -75,6 +75,14 @@ namespace TBF.BenchControl.TestMethods.FixedStartMassCollection
int flowSetTime0 = StateMachine.Time; 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 /// Optionally display prompt to emerge temperature meters to appropriate baths for heat meters test
/// ///
@@ -124,6 +124,13 @@ namespace TBF.BenchControl.TestMethods.FlyingStartMassCollection
//------------------------------------------------ //------------------------------------------------
Bridge.OnActivity(this, Strings.Checking_tank_capacity); 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; bool emptyTheTank = test.Emptying;
if (!emptyTheTank) /// If condition met => skip measuring and force emptying if (!emptyTheTank) /// If condition met => skip measuring and force emptying
+9
View File
@@ -4245,6 +4245,15 @@ namespace TBF.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Test volume exceeds the scale capacity.
/// </summary>
internal static string Test_volume_exceeds_the_scale_capacity {
get {
return ResourceManager.GetString("Test_volume_exceeds_the_scale_capacity", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Tester. /// Looks up a localized string similar to Tester.
/// </summary> /// </summary>
@@ -1404,4 +1404,7 @@
<data name="Required_temperature_C" xml:space="preserve"> <data name="Required_temperature_C" xml:space="preserve">
<value>Solltemperatur [°C]</value> <value>Solltemperatur [°C]</value>
</data> </data>
<data name="Test_volume_exceeds_the_scale_capacity" xml:space="preserve">
<value>Prüfpunktvolumen uberschritt Behalter</value>
</data>
</root> </root>
@@ -1681,4 +1681,7 @@
<data name="Set_warm_water_heating_temperature" xml:space="preserve"> <data name="Set_warm_water_heating_temperature" xml:space="preserve">
<value>Set warm water heating temperature</value> <value>Set warm water heating temperature</value>
</data> </data>
<data name="Test_volume_exceeds_the_scale_capacity" xml:space="preserve">
<value>Test volume exceeds the scale capacity</value>
</data>
</root> </root>