'Config', 'Results' projects added, includes iPerl opto logging bug-fixes, builds OK, cannot open DB, version 2.0.158.

This commit is contained in:
Milan Hanajik
2015-12-05 14:18:36 +01:00
parent 29ece2f91c
commit f6cec9d769
360 changed files with 6406 additions and 4091 deletions
@@ -26,7 +26,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
/// Event.OpArgumentError . Target flow is out of range
/// Event.Error . . . . . . Unspecified error
/// </returns>
public IList<Event> Execute(Entities.Test test, CombinedTestParams testParams)
public IList<Event> Execute(Config.Entities.Test test, CombinedTestParams testParams)
{
Elde.ControlBoardDev cBrd = StateMachine.ControlBoard;
@@ -61,7 +61,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
loop:
/// Start the test, initialize test results
Bridge.OnTestSelected(this, new TestSelectedEventArgs(test, repetitionNr, inPath, benchPath, outPath, sensPath, totalPulses));
Entities.TestResult tstRslt = new Entities.TestResult(test, repetitionNr, Entities.MetersKind.Combined);
Config.Entities.TestResult tstRslt = new Config.Entities.TestResult(test, repetitionNr, Config.Entities.MetersKind.Combined);
int flowSetTime0 = StateMachine.Time;
@@ -299,7 +299,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
string logstr = string.Format("E={0} f={1} q={2}", cBrd.EtPulses(0), cBrd.ReferenceFreq,
cBrd.ReferenceFlow * outPath.FlowMeter.NominalFlow);
for (int i = 0; i < Program.CompoundWMsCount * 2; i++)
for (int i = 0; i < Config.Data.CompoundWMsCount * 2; i++)
{
logstr += string.Format(" M{0}=({1},{2})", i + 1, WMRefPulses[i], WMPulses[i]);
}
@@ -307,7 +307,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
float progress = Formulas.TestProgress(cBrd.EtPulses(0), totalPulses, estFlowSetTime, test.TstTime);
TestProgressEventArgs data = GetTestProgressData(test, tstRslt, true, cBrd, cBrd.TTime, progress);
for (int i = 0; i < Program.CompoundWMsCount; i++)
for (int i = 0; i < Config.Data.CompoundWMsCount; i++)
{
data.TestResult.CombinedMeters[i].VolumeMeter = data.TestResult.Meters[2 * i].VolumeMeter
+ data.TestResult.Meters[2 * i + 1].VolumeMeter;
@@ -422,7 +422,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
tstRslt.TimeDivEnd4 = 0;
tstRslt.TimeDivEnd5 = 0;
for (int iCmbnd = 0; iCmbnd < Program.CompoundWMsCount; iCmbnd++)
for (int iCmbnd = 0; iCmbnd < Config.Data.CompoundWMsCount; iCmbnd++)
{
tstRslt.CombinedMeters[iCmbnd].VolumeRef = tstRslt.VolumeCTV; /// [l] must be calculated before main & aux. meter error
@@ -5,6 +5,7 @@ using System;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Config.Entities;
using TBF.BenchControl.Generic;
using TBF.Resources;
@@ -75,7 +76,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
return pars;
}
public override void UpdateTestParams(Entities.ComponentTest dbEntity)
public override void UpdateTestParams(ComponentTest dbEntity)
{
if (dbEntity == null) return;
try
@@ -101,7 +102,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
{
}
public CombinedTestParams(Entities.ComponentTest testParamsEntity, string componentName, Entities.Test test)
public CombinedTestParams(ComponentTest testParamsEntity, string componentName, Test test)
{
this.testParamsEntity = testParamsEntity;
this.componentName = componentName;
@@ -4,6 +4,7 @@
using System;
using System.Collections.Generic;
using log4net;
using Config.Entities;
using TBF.BenchControl;
namespace TBF.BenchControl.TestMethods.CombinedMeters
@@ -15,9 +16,9 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
readonly TestMethodCfg testMethodCfg;
public bool Evaluate(Entities.Test test) { return true; }
public bool Publish(Entities.Test test) { return true; }
public bool CanTest(Entities.MetersKind meters) { return meters == Entities.MetersKind.Combined; }
public bool Evaluate(Test test) { return true; }
public bool Publish(Test test) { return true; }
public bool CanTest(MetersKind meters) { return meters == MetersKind.Combined; }
public TestMethod()
{
@@ -30,7 +31,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
log.Debug(this.ToString());
}
public IList<Event> Execute(Entities.Test test)
public IList<Event> Execute(Test test)
{
return (new CombinedMetersSeq()).Execute(test, testMethodCfg.TestParams);
}
@@ -5,6 +5,7 @@ using System;
using System.Collections.Generic;
using System.IO;
using System.Xml.Serialization;
using Config.Entities;
using TBF.BenchControl.Generic;
namespace TBF.BenchControl.TestMethods.CombinedMeters
@@ -18,7 +19,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
[XmlIgnore]
public CombinedTestParams TestParams;
public override IParamsProvider GetTestParams() { return TestParams; }
public override IParamsProvider CreateTestParams(Entities.Test test)
public override IParamsProvider CreateTestParams(Test test)
{
CombinedTestParams testParams = new CombinedTestParams();
testParams.UpdateTestParams(Name, test);
@@ -15,7 +15,7 @@ namespace TBF.BenchControl.TestMethods.CombinedMeters
public IComponentCfg DefaultConfig() { return new TestMethodCfg(this); }
public IComponentCfg CmpntCfgFromCmpntEntity(Entities.Component component)
public IComponentCfg CmpntCfgFromCmpntEntity(Config.Entities.Component component)
{
return ComponentCfgBase.CreateFromDbEntity(typeof(TestMethodCfg), component, this);
}