07-08-2010 09:10 PM
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.
07-09-2010 03:14 AM
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
07-09-2010 03:32 AM
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
07-09-2010 03:37 AM
Also, if you're going to work with dynamic events, you should read this thread.