04-14-2010 09:27 AM
Hi,
I know it's specified in the LV documentation that Panel.Close? can not be generated by remote access but I try my chance with you to know if somebody has a parade for it.
The aim of my question is to close properly (by a smart procedure) any kind of dynamic VI with the fact to not know what the VI contains but just know that there is a loop containing an Event structure with Panel.Close? and Discard=True... (there is not necessary a 'Stop' button as I guess some of you would be say and I would llike a soluce with only the native events of Event Structure).
For the moment, I close these VIs with the method FP.Close but it's not recognised by Panel.Close? so it's not clean...
Thanks
(I use LV8.5)
04-14-2010 10:09 AM
Just a guess, probably using Windows API functions might help. Get a handle to the VI window and call a window close function with that handle.
It's only an idea, I didn't try it.
04-14-2010 10:12 AM - edited 04-14-2010 10:14 AM
Why not but... my code is called in a subpanel that itself is called dynamically
I think I am a desesperate case...
04-14-2010 10:27 AM
So you want to trigger the "Panel Close" event of a VI running in a subpanel? Interesting...
I wonder what effect that would have.
04-19-2010 02:23 AM