LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

monitoring user events number

Salut.
 
Is it possible to monitor the number of user events that have been fired in an application? Kind of like a queue monitor?
0 Kudos
Message 1 of 5
(2,828 Views)
Hi
 
I've just made a simple vi, where you can see which event occured. There's a string indicator, in which a text is displayed. The text is generated inside the event case. In the event case of the string control, I also read the type of event and pass this also to the string indicator.
 
I don't know if this is what you need, but maybe it helps you.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 5
(2,820 Views)
One way of doing it is to base your application on Producer/Consumer Design Pattern (Events) design pattern.
 
You can do this by going to File -> New ... -> VI From Template -> Design Patterns -> Producer/Consumer Design Pattern (Events)
 
In this design pattern you would pass over the event handling from the producer loop to the consumer loop. You then add in another quile loop to monitor the queue status.
 
 
Simple example attached. I think you will need Labview 7.0 Full Development System upward for this feature.
 
Hope this helps
 
David
 
Labview 7.1 on XP.

Message Edited by David Crawford on 10-27-2005 02:07 AM

Message Edited by David Crawford on 10-27-2005 02:08 AM

0 Kudos
Message 3 of 5
(2,817 Views)
Salut.
 
The software is already built around the producer/consumer/capitalist concept. It is using "programmatic user event/event structure" as the building block. The producer registers the event and i would like to be able to monitor how many events have been registered. Possible?
0 Kudos
Message 4 of 5
(2,800 Views)
Hi J...
 
I haven't looked in detail so this is off the top of my head....
 
Wouldn't the interation counter for the while loop that holds your event structure tell you how many events have been fired since the application was started?
 
David
0 Kudos
Message 5 of 5
(2,798 Views)