10-16-2008 09:43 AM
Hi,
following situation:
Using an event structure, my vi reacts on any <This VI>/"key down" event. Now I call this vi dynamically by another vi and load its front panel into a sub panel on the panel of the calling vi. While running on a sub panel, the event detection of the called vi does not work anymore. How can I register the called vi for the "key down" event? I played around with dynamic event registration, registering the panes of the calling vi to the event registration node, but yet I did not find a solution.
Any hint welcome.
Thanks,
Peter
Solved! Go to Solution.
10-16-2008 10:15 AM
Stoeckel,
sounds like you have 2 events structure running consecutively, if so this is a no no. To run an event structure on an external vi the event structure needs to be dynamic, as you mention above. I would check that I'm using the correct vi reference to the dynamic event structure block diagram node.
10-16-2008 10:28 AM
Richjoh,
after I had written down and posted my question, I found a solution by myself very soon. Sometimes it really helps to stop the hectic "trial and error" strategy and start thinking while writing. Since I wired the correct vi reference to the dynamic event registration node, it works.
Thanks for your effort.
Peter