FlowStableSec parameter added to RegulValve
This commit is contained in:
@@ -58,7 +58,8 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
pidCoefTextBox.Text = config.PidCoef.ToString();
|
||||
stableTimeTextBox.Text = config.StableTimeMs.ToString();
|
||||
storedPosReuseCheckBox.Checked = config.StoredPositionReuse;
|
||||
}
|
||||
flowStableSecTextBox.Text = config.FlowStableSec.ToString();
|
||||
}
|
||||
|
||||
public void Unlock()
|
||||
{
|
||||
@@ -70,7 +71,8 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
pidCoefTextBox.Enabled = true;
|
||||
stableTimeTextBox.Enabled = true;
|
||||
storedPosReuseCheckBox.Enabled = true;
|
||||
}
|
||||
flowStableSecTextBox.Enabled = true;
|
||||
}
|
||||
|
||||
public CfgVerifyFlags VerifyCfg(ref string message)
|
||||
{
|
||||
@@ -107,6 +109,11 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
flags |= CfgVerifyFlags.Error;
|
||||
message += Environment.NewLine + "'Stable time' should be between 200 and 1500 ms in 50 ms steps";
|
||||
}
|
||||
if (!int.TryParse(flowStableSecTextBox.Text, out dummy) || dummy < 0 || dummy > 60)
|
||||
{
|
||||
flags |= CfgVerifyFlags.Error;
|
||||
message += Environment.NewLine + "'Flow stable' should be between 0 and 60 sec";
|
||||
}
|
||||
|
||||
return flags;
|
||||
}
|
||||
@@ -123,6 +130,7 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
config.PidCoef = int.Parse(pidCoefTextBox.Text);
|
||||
config.StableTimeMs = int.Parse(stableTimeTextBox.Text);
|
||||
config.StoredPositionReuse = storedPosReuseCheckBox.Checked;
|
||||
config.FlowStableSec = int.Parse(flowStableSecTextBox.Text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user