There are a number of ways to do this. I think two of the simplest are in the attached image. If you want to make your code a little more robust, I'd use queue's instead of local variables, so as to prevent race conditions and have your code a little more deterministic. If you do go the local variable route, make sure the mechanical action of the control itself is one of the switching ones, because if the action is latching, LabVIEW might not catch it (which speaks to the non-determinism of locals).
Hope this helps.

Message Edited by Day on 09-26-2006 01:56 PM