View Single Post
  #2   Spotlight this post!  
Unread 18-10-2010, 14:50
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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 Itamar View Post
Is it possible to use interrupts to execute a certain VI the second a microswitch is clicked? If so, please tell me how.
You don't want the interrupt service routine to run your VI if it contains any delays or a non-trivial amount of code. You will mess up the system's latency.

You want to let the RTOS (vxworks) handle asynchronous events that require non-trivial amounts of processing.

Can you describe in more detail what you are trying to accomplish, and why it can't wait 20ms for the next teleop iteration?



Reply With Quote