LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
altenbach

Provide an event terminal for event queue size

Status: New

(This came up an a somewhat related discussion here. Possibly it would be easier to implement and thus has a better chance.)

 

The suggestion is to provide an event terminal that outputs the current number of queued up entries in the event queue for that particular event.

 

(The main purpose is to deal with stale event accumulation. Details are in the quoted idea thread.)

 

2 Comments
Hooovahh
Proven Zealot

I'd like to suggest a slight modifiecation.  Instead of an event terminal returning the queue size, I'd like a VI that takes a event registration ref and return information like the number of events queued up to be handled.  This would sorta be like the Get Queue Status.

 

For me I often have a design pattern around dynamic user events, and at the moment I don't have an easy way to determine if there are things stacked up to be handled or not.  There are a few options, like registering for the events twice, then using one event structure with a timeout of 0.  If I go into the timeout then there are no events to handle, if not, then my other event structure can handle the actual requests.

 

This information is somewhat available in a private API.  If you right click the event structure you have the Event Inspector Window which can show the queue of events to be handled.  There is even a VI which can give some of this information.  

 

<LabVIEW>\resource\dialog\Event Inspector\EI Get Event Queue Data.vi

 

But because it is private, and undocumented it may change in the future.  And besides it is more of a global debug tool and my use is for a specific event structure, or specific event registration ref.

sdusing
Member

Still interested in this feature

Steven Dusing
CLA, CTA