Quote:
Originally Posted by Mark McLeod
Adding to Ether's idea, you might encapsulate the Motor speed command in a subvi all by itself that everyone calls to set that motor speed. With an optional input for the emergency stop flag.
Then the interrupt handler calls it to set the emergency stop flag (& speed to zero), while the state machine calls it for normal operation.
|
Thanks Mark, that is a MUCH cleaner approach. I like it.