LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execute Event structure only on first value change

Solved!
Go to solution
Solution
Accepted by topic author yp21
  • Do the comparison before the case structure, eliminating the lower shift register.
  • If you swap the cases, you don't need to invert the OR operation.
  • You still have that 28.5714ms wait constant. waits are integers.
  • Your outer loop has an infinite loop rate, consuming 100% CPU in the FALSE case
  • Code still looks clumsy. Use a state machine and eliminate the inner loop.

 

Message 11 of 12
(829 Views)

Your state machine suggestion was perfect. It does exactly what I want now. Thank you all for your suggestions and ideas. I definitely feel more confident with doing things like this. 

Message 12 of 12
(816 Views)