LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Panel.Close? remote generation

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)

0 Kudos
Message 1 of 5
(2,833 Views)

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.

 

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

Why not but... my code is called in a subpanel that itself is called dynamically Smiley Tongue

 

I think I am a desesperate case...

Message Edité par J.DECHET le 04-14-2010 05:14 PM
0 Kudos
Message 3 of 5
(2,820 Views)

So you want to trigger the "Panel Close" event of a VI running in a subpanel? Interesting...

I wonder what effect that would have.

 

0 Kudos
Message 4 of 5
(2,813 Views)
Yes, that's I would like...
0 Kudos
Message 5 of 5
(2,786 Views)