LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

is there a way to flush (remove) the queue of a specific event structure ?

Solved!
Go to solution

this is a straight forward question. please tell me yes or no.

thanks alot.

0 Kudos
Message 1 of 3
(3,571 Views)
Solution
Accepted by topic author hookso

@hookso wrote:

this is a straight forward question. please tell me yes or no.

thanks alot.


 

For staticically regesitered events, I know of no method worth trying.

 

For dynamic events I would experiment with un-registering the event to see if it destroys the queued events.

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(3,568 Views)

Directly, no.  Indirectly, yes, if you design your code correctly.  Use your event structure only for detecting events and firing commands (stuffing queues) to separate command processing loop(s).  Do not do any processing in the event structure itself (other than throwing events away).  This converts your event structure queue into a command queue which can be manipulated (flushed, pruned for duplicates, etc.).

 

You may want to search the LabVIEW Idea Exchange and kudo those ideas which line up with this request.  There are several...

Message 3 of 3
(3,542 Views)