LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Named User Events?

Hi,

I worked with notifiers which are named. This way I can call obtain notifier from different locations in a VI and even from other VIs.

Now to the user events. They are defined by the data type and its name, right?
If a don't want to wire the user event refnum to all places on the blockdiagramm where they're needed I just create a copy of what I did to define the event for the first time: same name and data type to another create user event block
But user events of these copies are never handled.
What do I have to do?

Andreas
0 Kudos
Message 1 of 3
(2,669 Views)
Create a functional global with a lookup table that contains the name of the user event and the refnums. Have functionality to add refnums and do that whereever you define the event, and a lookup functionality that if fed the right name gives out the refnum...

Ques and notifiers have this functionality built in...you'll have to make it yourself for events.
Message 2 of 3
(2,669 Views)
Hi and thanks, Mads,

do I have to create a polymorphic functional global in order to handle all kinds of user events' data types?
I recognized that there's no "clean" user event refnum which isn't already containing information about the used data type.

Andreas
0 Kudos
Message 3 of 3
(2,669 Views)