12-19-2022 03:47 AM
Hi everyone,
I've one sensor and one reference value. I want to change a boolean value when de diference above is more than 0.5. Then, I want to keep in that state until the variable value is 0.5 lower than the reference one. How could it be done? I attach a capture where there is a code which only does one part.
Thank you!
Solved! Go to Solution.
12-19-2022 04:47 AM
Hi George,
@George7893 wrote:
I've one sensor and one reference value. I want to change a boolean value when de diference above is more than 0.5. Then, I want to keep in that state until the variable value is 0.5 lower than the reference one. How could it be done?
Use a shift register in your loop to store the current state of the boolean. Then use a case structure to handle your two cases to check for the next "change condition"…
@George7893 wrote:
I attach a capture where there is a code which only does one part.
No, you did not attach anything…
12-19-2022 04:51 AM
I finally solve it as the capture attached by using another post. Thank you anyway.
12-19-2022 04:57 AM - edited 12-19-2022 04:58 AM
12-19-2022 05:04 AM
Hi again!,
Of course your model is really simple but I'm not able to make it work in my VI. I attach the whole graphic. I'm new in LabView, so maybe I'm confused with something.
Best Regards
12-19-2022 10:54 AM