LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Naming groups of events

I would like to name a group of events so that they appear as a child group of "Dynamic" events in the Edit events window.

For custom user events I can do the following to put them into a child group called "My group of events":

 

Custom named events  Custom named events - Edit events

 

 

 

However, if I have references to front panel objects which I then register for events, I have no idea how to put them into a single group.

How can I cluster them like the previous example?

 

Front panel control ref events  Front panel control ref events - Edit events

 

I'm sure this has probably been asked before, but can't find any previous posts that answer this.

 

Thanks

Matt

0 Kudos
Message 1 of 6
(2,948 Views)
I think we can directly connect the cluster to Register events and which should be shown as what you expected in the first case.
Thanks
uday
0 Kudos
Message 2 of 6
(2,883 Views)

Thanks for the suggestion udka

 

Do you mean like this?

 

Front panel control ref events combined

 

Unfortunately I need multiple event types (Value Change and Mouse Leave). Directly connecting the cluster only allows me to choose one common event. Do you know of another way?

 

Thanks

0 Kudos
Message 3 of 6
(2,875 Views)

Hi Matt

Not sure if this helps you achieve what you're looking to do, but you can cluster the references and feed these into both Value Change / Mouse Leave events.They then appear under Dynamic -> 'My group'.

 

Cheers

Neil

 

ScreenHunter_02 Jan. 17 12.31.jpg

 

 ScreenHunter_01 Jan. 17 12.18.jpg

 

 

0 Kudos
Message 4 of 6
(2,868 Views)

Of course re-clustering the references doesn't achieve much other than change the cluster name ... doh !

 

0 Kudos
Message 5 of 6
(2,860 Views)

Thanks NeilR.

 

I ideally wanted to avoid redundant events and have them in a single group. I get the feeling this isn't going to be possible with front panel object events.

 

The main reason for this was implementing a Passive Model View Presenter design pattern. Each view would have a set of exposed events that the presenter could subscribe to. However, thinking more about this, I should create a custom event for each event that I may need to handle so that duplicate/overidden/alternative views are not limited to the same control type as the base view. The group naming problem is then solved as well.

0 Kudos
Message 6 of 6
(2,814 Views)