Regul. valve calibration completed and tested
This commit is contained in:
@@ -6,7 +6,7 @@ using TBF.Boxes;
|
||||
|
||||
namespace TBF.BenchControl.Elde.RegulValve
|
||||
{
|
||||
public class RegulValve : ComponentBase, GenericDevices.IRegulValve
|
||||
public class RegulValve : ComponentBase, IDevice, GenericDevices.IRegulValve
|
||||
{
|
||||
private static readonly ILog log = LogManager.GetLogger(typeof(RegulValve));
|
||||
public override string ToString() { return string.Format("RegulValve({0})", Cfg.ToString(1)); }
|
||||
@@ -68,8 +68,7 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
else if (args.Command == CfgChangeCmd.GetRVAdc1 || args.Command == CfgChangeCmd.GetRVAdc2)
|
||||
{
|
||||
int adc = (int)ControlBoard.AnalogInputRaw(Idx1 - 1, 0);
|
||||
// TOTEST
|
||||
RegulValveCfgCtrl.OnCmdResponse(this, new CmdResponseArgs(args.Command, adc));
|
||||
RegulValveCfgCtrl.OnCmdResponse(this, new CmdResponseArgs(args.Command, Idx1, adc));
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -94,6 +93,15 @@ namespace TBF.BenchControl.Elde.RegulValve
|
||||
log.Debug(this.ToString());
|
||||
}
|
||||
|
||||
public void Initialize() { }
|
||||
public void RunDeviceBefore()
|
||||
{
|
||||
int adc = (int)ControlBoard.AnalogInputRaw(Idx1 - 1, 0);
|
||||
Handlers.OnAdcChanged(this, new CmdResponseArgs(CfgChangeCmd.GetRVAdc, Idx1, adc));
|
||||
}
|
||||
public void RunDeviceAfter() { }
|
||||
public void StopDevice() { }
|
||||
|
||||
/// <summary>
|
||||
/// Operation to set the water flow within tolerances
|
||||
/// Events: Event.None, Event.FlowReached, Event.FlowTimeOut
|
||||
|
||||
Reference in New Issue
Block a user