I have a problem that i think has a simple solution.
I've got a case structure with a button attached to it. The button has the "switch until released" action assigned to it.
What i want is that everything inside the case structure runs only once until the button is released. Then, when the button is pressed again, the case structure has to run only once again.
I've attached an VI to make the situation more clear.
Here's what an event structure would look like. I would recommend looking at the help menu w/ examples for the event structures to get a better understanding of their functionality.
Why do you need all of that code when you could simply change the mechanical action to a latch type and if you knwo how an event structure works, that's even better.