View Single Post
  #13   Spotlight this post!  
Unread 21-10-2010, 22:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,120
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: How do I use interrupts?

Quote:
Originally Posted by Mark McLeod View Post
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.



Reply With Quote