11-20-2008 02:11 PM
Solved! Go to Solution.
11-20-2008 02:16 PM
11-20-2008 02:31 PM
Prior to the introduction of the event structure the only option was polling. The control terminals are in a while loop (the producer) with shift registers and a wait, typically about 100 ms. On each iteration of the loop the current value of the control is compared to the previous value. If it has changed, then take the appropriate action. As Andrey suggested, queues are a good way to pass the information between loops.
This works for the equivalent of Value Changed events. Things like Mouse Up or filter events were not possible or much more difficult.
Lynn
11-20-2008 07:54 PM
Thanks. Not pretty.
I'm surprised that event structures are not included in the base version of LV. Seems like simple functionality to me. I spent nearly half an hour scratching my head trying to remember how to handle events. Regardless, I'm happy to have a solution.
Thanks again,
David
11-21-2008 03:32 AM
Additionally you should use the 'wait for front panel activity' VI, this will let the loop wait until the user has done anything on the FP (like an event structure), than you check for changes.
Ton