View Single Post
  #14   Spotlight this post!  
Unread 20-10-2010, 14:09
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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
I'm pretty sure that what I need is an event handler.
So... is there an option to use events for a microswitch?
Yes, you could use an event handler http://en.wikipedia.org/wiki/Event_handler to respond to the microswitch.

Using LabVIEW, you can set up the circuitry connected to the microswitch to generate an interrupt http://en.wikipedia.org/wiki/Interrupts when the switch closes (or opens, or both). When the interrupt occurs, the operating system immediately responds and queues up your event handler for execution.

The 2010 Framework doesn't contain any template or example code for event handlers. See Greg's and Mark's earlier posts for suggestions how to do this.

Before you do that though, if you tell us what you are trying to accomplish http://www.chiefdelphi.com/forums/sh...0&postcount=10 there might be a better way to handle it.







Last edited by Ether : 20-10-2010 at 14:14.
Reply With Quote