LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triggering dynamic events across VIs

Hi,

 

I want a dynamic event triggered in one VI to run a case in another VI. Is this possible?

 

If so, how do I pass the event references and the data associated with the event between the 2 VIs.

 

Regards.

0 Kudos
Message 1 of 4
(2,296 Views)

Hi tdog,

You could possibly use notifiers to pass the Event Registration Refnum from the VI creating the event to the other VI.

1). Add into both VIs an Obtain Notifier, using the same name (eg. 'DynamicVINotifer')
2). Use Send Notifier in the VI creating the event
3). Use Wait on Notification in the receiving VI, wiring the output to the dynamic event tunnel

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 2 of 4
(2,276 Views)

Hi tdog,

 

Also, have a look the example: labview\examples\general\dynamicevents.llb\Dynamically Register for Events.vi

 

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

0 Kudos
Message 3 of 4
(2,270 Views)

Also, if you're going to work with dynamic events, you should read this thread.


___________________
Try to take over the world!
0 Kudos
Message 4 of 4
(2,266 Views)