LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Event Registration Status

So lets say I register for some dynamic events, user events or other.  How can I probe that event registration, to see if there are events to be handled, without dequeueing those events?  This parallels the Queue functions of Get Queue Status, or even possibly Preview Queue Element.

 

One way to do this is to register for events twice, then use one just to probe if there are events to be handled, and the other actually handles them.  Are there other ways to probe into the event registration?  Or is this an idea for the Idea Exchange?  This information must be somewhere right because the Event Inspection Window uses it.

 

Edit:  Oh the dangers of unpublished APIs (\resource\dialog\Event Inspector\EI Get Event Queue Data.vi)

Message 1 of 3
(3,575 Views)

Hi Hooovahh, 

I looked into this and wasn't able to find an API function that allows user access to the event registration.

It seems like your suggested workaround might be the best bet and you could definitely mention it in the Idea Exchange.

Shalini M.
Partner Development Engineer
Alliance Partner Network
National Instruments
0 Kudos
Message 2 of 3
(3,508 Views)

Seems there is an idea that is close to what I want.

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Provide-an-event-terminal-for-event-queue-size/idc-p/3...

 

The private function used in the Event Inspector Window might have worked, but I suspect constantly querying it would cause memory issues, and besides it is for events in all of an application instance, where I just care about one structure, or event registration ref.

0 Kudos
Message 3 of 3
(3,494 Views)