LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtaining a list of used events

Is there a way for me find the events associated with something on the block diagram?  I'm envisioning somelike like right clicking on an item and selecting "Find->Events".  Alternately, is there some way to get a list of events that my VI is using?
0 Kudos
Message 1 of 13
(3,553 Views)
I'm not sure what you mean by events associated with something on the block diagram. The user interacts with front panel object and those are what generate events, not block diagram objects (unless it is a user event of course)
 
If you are looking for all the possible events generated by a front panel object, just place an event structure and when you try to edit event cases, it will show you all the allowable cases.
 
Again, I'm not sure if I'm understanding your question right. Please let me know if I'm not.
 
Regards,
 
Jack J.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 13
(3,539 Views)
Let me try to give an example:

I have a button on my front panel and I want to know if there's already a "Value Change" event for this button in the block diagram.  For a small program, it's not too difficult to look and see, but for a really big block diagram it's difficult to visualy inspect the diagram and see if the event has already been defined.  Is there any way for me to get a list of events that are in use on my block diagram?
0 Kudos
Message 3 of 13
(3,534 Views)
Pop-up >>> Rearrange cases... >>> Sort
 
is about as close as you can get.
 
 
Ben

Message Edited by Ben on 09-29-2005 01:13 PM

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 4 of 13
(3,528 Views)
That won't work for me because it only shows the cases in one event structure.  Right now I have a half dozen event structures in a block diagram that's about 4 screens wide and 4 screens high.  Eventually I will probably put all the events in much fewer structures, but for right now it make sense for me to do it this way.

The reason I brought the question up was that I'm just getting back to devloping this VI after a long break and I couldn't remember whether or not I had already created an event case for one of my buttons.
0 Kudos
Message 5 of 13
(3,513 Views)

How about trying to do a text search in the VI. Go to Edit>>Find. Select the Text radio button. Then type in "<control name>": <event>

For example if you have a boolean called Blah and you want to find out if there is a Mouse Up event, then you'd search for "Blah": Mouse Up

I think this would be easier than scrolling and looking through each event structure even though you manually have to type it in.

Hope this helps.

Regards,

Jack J.
Applications Engineer
National Instruments

0 Kudos
Message 6 of 13
(3,510 Views)
That looks like it will work well enough for what I need.  Thanks!

In the future, it'd be great to find event for an object just like you would find its local variables.
0 Kudos
Message 7 of 13
(3,508 Views)
Just for the record.
 
Multiple events structures in a VI should be avoided.
 
OK, I feel better now.
 
Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 8 of 13
(3,486 Views)
Good to know.  Why should multiple event structures be avoided?  Is that documented anywhere?
0 Kudos
Message 9 of 13
(3,476 Views)

See online help, event structures, caveats and recommendations, Avoid Placing Two Event Structures in One Loop.

There's quite a bit of information there, starting with:

National Instruments recommends that you place only one Event structure in a loop. When an event occurs in this configuration, the Event structure handles the event, the loop iterates, and the Event structure waits for the next event to occur. If you place two Event structures in a single loop, the loop cannot iterate until both Event structures handle an event.

Roy

0 Kudos
Message 10 of 13
(3,452 Views)