FlowStableSec parameter added to RegulValve

This commit is contained in:
Milan Hanajik
2014-09-08 20:24:46 +02:00
parent cc2a24cee5
commit d14cb175a6
8 changed files with 86 additions and 76 deletions
@@ -34,6 +34,7 @@ namespace TBF.BenchControl.Elde.RegulValve
public readonly int DacValueClosed; /// 0..1023
public readonly int DacValueOpen; /// 0..1023
public readonly int StableTime; /// 0=200ms, step=50ms, max. 1500ms (max.26)
public readonly int FlowStableSec; /// 0..60 sec
public RegulValve(RegulValveCfg cfg, IList<Generic.IComponent> components)
{
@@ -47,6 +48,8 @@ namespace TBF.BenchControl.Elde.RegulValve
this.DacValueClosed = cfg.DacValueClosed;
this.DacValueOpen = cfg.DacValueOpen;
this.StableTime = cfg.StableTime;
this.FlowStableSec = cfg.FlowStableSec;
this.dict = new Dictionary<float, float>();
this.controlBoard.RegValveCalib[Position - 1, 0] = (uint)DacValueClosed;