From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically read number of events in queue

Solved!
Go to solution

I assume I'm overlooking something obvious, but is there a way to programmatically see the number of events in the event queue? I know I can interactively see this with the Event Inspector Window, but I'd like to know how they monitor it. I also don't want to flush everything in the event queue just to check.

 

event_queue_tester.png

0 Kudos
Message 1 of 3
(1,008 Views)
Solution
Accepted by topic author DHerron

There isn't really a nice public API that will do this buy you can call into the same code that the event inspector does to get that information.

 

https://forums.ni.com/t5/You-May-Not-Know/Programmatically-Inspect-Event-Queues/ba-p/3549367

Matt J | National Instruments | CLA
Message 2 of 3
(991 Views)

My google skills failed me. This is exactly what I was looking for -- thank you!

0 Kudos
Message 3 of 3
(985 Views)