LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Play tone for duration of space bar press

Solved!
Go to solution

@Liddy wrote:

Is there a way I can stop the event structure without using a Boolean Stop? I would like to stop the event structure when the For Loop it is within stops.


If you haven't specified a timeout value, the event structure will wait indefinitely for another event to occur.  My code does not stop the event structure (no such thing).  I have an event registered for a boolean button that will stop the main while loop and allow the program to close.  

I'm assuming you have a UI that the (U)ser will (I)nterface with.  An event structure will handle button presses, control value changes, monitor keystrokes, etc from the UI and allow you to perform tasks after certain events happen.  I would suggest that you learn how to use one because it will greatly simplify your code.  

aputman
------------------
Heads up! NI has moved LabVIEW to a mandatory SaaS subscription policy, along with a big price increase. Make your voice heard.
0 Kudos
Message 11 of 11
(180 Views)