Hi,
To simplify my problem: the VI contains a boolean indicator (representing the ON/OFF status of a pump) and a numeric control (representing the measured pressure of the system).
The boolean indicator needs to be ON during a certain time (for example it stays ON for 10 seconds and then turns OFF again). But if the numeric control goes over a certain limit, the boolean must turn OFF (even if it did not reach the given time). But when the control goes lower than the limit again, the boolean must turn ON for the remaining time.
For example:
Time for which the boolean must be ON = 10 seconds
Upper limit for the numeric control = 5
The numeric control stays at 4, boolean turns ON. After 6 seconds, the numeric control goes to 6, so the boolean turns OFF. Eventually the numeric control goes back to 4, so the boolean must turn ON again for the remaining 4 seconds.
Does anyone know how to solve this on LabView?
Thank you.