Hi Aitor,
@AitorGutierrez wrote:
What i want is, if the pump is activated because the level is low, it should stop only when the wate,r or any other liquid, reach the high level and the pump should be activated when the water reach the low level.
IF level <= low_level and previous level > low_level THEN pump:=ON
IF level >= high_level and previous level < high_level THEN pump:=OFF
All you need is a shift register to store the previous level…
Similar solution:
IF level <= low_level AND pump==OFF THEN pump:=ON
IF level >= high_level AND pump==ON THEN pump:=OFF
Again you need a shift register to store the current state of the pump…
Btw.
- This is a typical task for students in LabVIEW beginner courses, the very same question has been asked lot of times before. Did you search this forum for similar problems?
- This task typically is known as a simple control scheme, similar to a hysteresis switch. This also has been discussed before in this forum…
Best regards,
GerdW
using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019