1. DB creation and import via Settings/Profiles menu item fixed, 2. Each scale must have a drain valve.

This commit is contained in:
Milan Hanajik
2020-03-02 10:43:24 +01:00
parent ee69631d38
commit 329ffeca8f
2 changed files with 20 additions and 14 deletions
@@ -77,6 +77,8 @@ namespace TBF.BenchControl.MettlerToledo
drainValve = TbfComponents.FindComponent(tankDrainingCfg.DrainValve) as IValve;
evaporationCmpnt = TbfComponents.FindComponent(tankDrainingCfg.Evaporation) as IEvaporation;
if (drainValve == null) throw new Exception(string.Format("{0} is missing a drain valve", Name));
openTheDrainValveOp = new Elde.SetValvesOp(StateMachine.ControlBoard, drainValve, null);
closeTheDrainValveOp = new Elde.SetValvesOp(StateMachine.ControlBoard, null, drainValve);
waitTankIsEmptyOp = new WaitTankEmptyOp(this);