LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

clear event structure queue

Solved!
Go to solution

My current setup would require that I cancel all events after 1 event is fire.  If I could select wich event I would like to cancel, it would be better but I can live with all events cancelled.

 

Thank you,

 

Simon-Pierre

0 Kudos
Message 11 of 14
(2,289 Views)

edited

0 Kudos
Message 12 of 14
(2,289 Views)
Solution
Accepted by sppelletier

@coolaid wrote:

My current setup would require that I cancel all events after 1 event is fire.  If I could select wich event I would like to cancel, it would be better but I can live with all events cancelled.

 

Thank you,

 

Simon-Pierre


If you want to prevent certain/all events from occuring after the first event you can disable the controls. This will prevent the event from occuring. Any controls not directly tied to the event structure do not need to be disabled, only the ones you that you have event cases for. If the control is disabled no event will be triggered. Other than maintaining some type of state information within the loop containing the event structure along with programmatic filtering of the event (simple case statement which prevent code within an event case from running) there is not way to simply clear the event queue.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 13 of 14
(2,282 Views)

Ok then, I will disable the button while I'm executing the event and release it afterward.

 

thank you all for your answers.

 

Simon-Pierre

0 Kudos
Message 14 of 14
(2,275 Views)