(1) MetrologyDlgDiverterTab added to UI, (2) double TestTimeCorrection(double flow) added to IDiverter and implemented in Elde.Diverter and Dummy.Diverter.

This commit is contained in:
Milan Hanajik
2019-05-15 11:18:20 +02:00
parent 55ed11ae58
commit 3fceee156b
9 changed files with 867 additions and 55 deletions
@@ -32,5 +32,10 @@ namespace TBF.BenchControl.Dummy.Diverter
public int ThresholdGate { get { return 50; } }
public int ThresholdLo { get { return 10; } }
public int ThresholdHi { get { return 90; } }
public double TestTimeCorrection(double flow)
{
return 0;
}
}
}
@@ -46,6 +46,15 @@ namespace TBF.BenchControl.Elde.Diverter
public int ThresholdHi { get { return diverterCfg.ThresholdHi; } }
/// <summary>
/// For a given flow in [m3/h] returns a test time correction in [s]
/// </summary>
public double TestTimeCorrection(double flow)
{
return Config.Formulas.GetCorrection(flow, Corrections);
}
public Diverter()
{
}
+8 -1
View File
@@ -1,5 +1,5 @@
///
/// Copyright (c) 2013-2015 Sensus Metering Systems
/// Copyright (c) 2013-2019 Sensus Slovensko a.s.
///
using TBF.BenchControl.Generic;
@@ -32,5 +32,12 @@ namespace TBF.BenchControl.GenericDevices
/// Threshold for high level when diverter transition time is measured in %, 0..100
/// </summary>
int ThresholdHi { get; }
/// <summary>
/// For a given flow in [m3/h] returns a test time correction in [s]
/// </summary>
/// <param name="flow">Flow in [m3/h]</param>
/// <returns>Test time correction in [s]</returns>
double TestTimeCorrection(double flow);
}
}