MagFlux 5 min Zeroflow, Magflux testresult mit abfrage
This commit is contained in:
@@ -1939,7 +1939,7 @@ namespace CordonelPreadjustmentUi
|
||||
}
|
||||
}
|
||||
|
||||
private void PushProgressBars(int totalSecondsEstm, DateTimeOffset totalStart, int currentProccessEstm, DateTimeOffset currentProccessStartTime)
|
||||
public void PushProgressBars(int totalSecondsEstm, DateTimeOffset totalStart, int currentProccessEstm, DateTimeOffset currentProccessStartTime)
|
||||
{
|
||||
if (this.InvokeRequired)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net451" />
|
||||
</packages>
|
||||
@@ -898,6 +898,7 @@ namespace Xylem.Common.Hardware.WaterMeter.MagFlux.MagFluxCore
|
||||
{
|
||||
throw new ApplicationException("Can not find an ongoing measurement");
|
||||
}
|
||||
mainMeasurement.FlowDirectionforCalculatingVol = dir;
|
||||
|
||||
var results = new List<MeasurementResults>();
|
||||
var mainResult = intermediateMeasurement
|
||||
@@ -1034,7 +1035,6 @@ namespace Xylem.Common.Hardware.WaterMeter.MagFlux.MagFluxCore
|
||||
public void StopCalibration()
|
||||
{
|
||||
StopMeasurement();
|
||||
RequestProtocol?.AbortDeviceForCalibration();
|
||||
RequestProtocol?.CloseConnection();
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net48" />
|
||||
</packages>
|
||||
+1
-1
@@ -1 +1 @@
|
||||
89102b0142e574de38a9f47d370f3334e5e6c268
|
||||
c43c40a030005a8f189e6179faf40a6d42bfef5c
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net40" />
|
||||
</packages>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net40" />
|
||||
</packages>
|
||||
@@ -20,7 +20,7 @@ namespace Xylem.Common.Metrology.Measurements
|
||||
public Double VolumeCm;
|
||||
|
||||
/// <summary>
|
||||
/// Reverse volume in cubic meters
|
||||
/// Forward volume in cubic meters
|
||||
/// </summary>
|
||||
public Double ForwardVolumeCm;
|
||||
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
338bdd8d71c148c9df0972f903098eb23eacf0c9
|
||||
65d75c3322f8a137c69963cfdc0cb6f1ffacf62a
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net40" />
|
||||
</packages>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net472" />
|
||||
</packages>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net46" />
|
||||
</packages>
|
||||
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NLog" version="5.2.2" targetFramework="net461" />
|
||||
</packages>
|
||||
@@ -273,7 +273,7 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
}
|
||||
else if (Mode == MeterTypes.MagFlux)
|
||||
{
|
||||
|
||||
wrappedControl.StatusLabel("MagFlux Zeroflow is preparing");
|
||||
var meterBatch = new MeterBatch();
|
||||
|
||||
foreach (var item in TestsetuptContainer?.meterTestSettings)
|
||||
@@ -295,9 +295,27 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
var c = TestsetuptContainer.meterTestSettings.Count();
|
||||
|
||||
TestsetuptContainer.meterTestResults = new MeterTestResults[c];
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
Thread.Sleep(60000);
|
||||
var testTimeMS = 300000;
|
||||
wrappedControl.StatusLabel("MagFlux Zeroflow is running");
|
||||
var Start = DateTimeOffset.Now;
|
||||
while (testTimeMS >= 0)
|
||||
{
|
||||
testTimeMS = testTimeMS - 50;
|
||||
wrappedControl.PushProgressBars(testTimeMS / 1000, Start, testTimeMS / 1000, Start);
|
||||
Thread.Sleep(50);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
MessageBox.Show(ex.Message);
|
||||
}
|
||||
|
||||
|
||||
foreach (var meter in meterBatch.ListOfMeters)
|
||||
|
||||
@@ -1546,6 +1546,7 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
_logger.Error(ex, $"error on GetResults Slot={Slot},Chnnl={Chnnl},refVolQm={refVolQm},refTimeS={refTimeS}");
|
||||
return null;
|
||||
}
|
||||
@@ -1561,20 +1562,28 @@ namespace XylemCommonUiLegacyGenCtl
|
||||
var t = MeasurementDirection.TakeBoth;
|
||||
|
||||
|
||||
|
||||
if (TestSetupContainer != null && TestSetupContainer.meterTestSettings != null && TestSetupContainer.meterTestSettings.Any(ts => ts.Slot == Slot))
|
||||
try
|
||||
{
|
||||
if (TestSetupContainer != null && TestSetupContainer.meterTestSettings != null && TestSetupContainer.meterTestSettings.Any(ts => ts != null && ts.Slot == Slot))
|
||||
{
|
||||
|
||||
var testset = TestSetupContainer.meterTestSettings.First(ts => ts.Slot == Slot);
|
||||
if (testset.FlowTestingOnlyRevers)
|
||||
{
|
||||
t = MeasurementDirection.TakeOnlyBackward;
|
||||
}
|
||||
else if (testset.FlowTestingOnlyForward)
|
||||
{
|
||||
t = MeasurementDirection.TakeOnlyForward;
|
||||
var testset = TestSetupContainer.meterTestSettings.First(ts => ts != null && ts.Slot == Slot);
|
||||
if (testset.FlowTestingOnlyRevers)
|
||||
{
|
||||
t = MeasurementDirection.TakeOnlyBackward;
|
||||
}
|
||||
else if (testset.FlowTestingOnlyForward)
|
||||
{
|
||||
t = MeasurementDirection.TakeOnlyForward;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.Error(ex, $"error on GetResults find Testcontainer Slot={Slot},Chnnl={Chnnl},refVolQm={refVolQm},refTimeS={refTimeS}");
|
||||
throw;
|
||||
}
|
||||
|
||||
result = GetMeasurementResult(Slot, Chnnl, refVolQm, refTimeS,t);
|
||||
|
||||
if (!result.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user