LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"key down" event detection in dynamically called vis

Solved!
Go to solution

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 

0 Kudos
Message 1 of 3
(2,836 Views)
Solution
Accepted by topic author stoeckel

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.

0 Kudos
Message 2 of 3
(2,822 Views)

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

0 Kudos
Message 3 of 3
(2,816 Views)