A group of numbers is used as my input. Currently I want to set my code as: when the input is greater than a threshold number (4 for example) it will display true, and it will not change to false until another input larger than 4 appears. Our current problem is it will display false if the input is less than the threshold(4) when we want it to remain true.
Please help me, thanks.
已解决! 转到解答。
Usually what comes first to my mind is not the shortest solution, but anyway, it might give you some idea:
Instead of XOR I typically use a "not equal". Same difference but less nerdy. 😄
Hmm, i think the Truth table is the same in both cases, no?
edit: ah, i see you edit your post. And yep, the not equal is the same 🙂
Yes, the're the same. I would probably create a subVI as follows. No telephone wires across the loop 😄
(Note that the subVI needs to be reentrant to retain state per instance)

@altenbach wrote:Instead of XOR I typically use a "not equal". Same difference but less nerdy. 😄
Except knowing that True is "greater than" False adds some nerdiness back in.
@RavensFan wrote:
Except knowing that True is "greater than" False adds some nerdiness back in.
... but if somebody says that something is going to be great(er), it might not necessarily be true. 😄