(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:
@@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user