Quote:
Originally Posted by Itamar
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.