LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

triggering an event structure by an event generated in another vi

Hi folks,
 
I wonder how I can trigger an event structure in one vi by an event generated in another vi. The two vis are running independently from each other but on the same computer. More specific: A vi with event structure shall wait for a push button hit in another vi.
 
Any hint will be highly appreciated.
 
Thanks,
Peter
0 Kudos
Message 1 of 3
(2,431 Views)
You could follow the thread.

Regards,

André
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 3
(2,427 Views)
There are two (might be more) ways to do this.


First is to use user events. See the "Programmatically Fire Events.vi" or "Dynamically Register for Events.vi" examples.


Second way is to pass reference to a control (hidden on the front panel). Then in the subvi, use the property Value (signaling) to trigger the event. The other vi simply registers to the value change event of the control.


The first method is more scaleable. It's a better way to do it, but involves a bit more work. The second method is the quick and dirty way.


Regards,


Wiebe.
0 Kudos
Message 3 of 3
(2,423 Views)