LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect closed buttons and vi from VIs inside subpanel

Hi I have a problem regarding the closed buttons and frontpanel from vis inside the subpanel.
I am using Labview 7.1. Pls see the attached. Inside the attached, they are main, first, second and subpanel.
First, second and main are supposed to be inside the subpanel. First and second vis are closed by means
of their own close buttons while the main vi is closed by means of delay.

I thought of using the F.P.state property to tell the states of Vi inside the subpanel. But it does not seem to work.

Please help.

And secondly as a thoughts on separate issue , building the main.vi that would be reponsible for opening first and second vi, by means of open vi property and open vi function.
When it works, then I run subpanel to open main vi inside . But somehow first and second vi open outside subpanel. Do do you think putting all vis in the subpanel would be better than putting the main inside the subpanel, where the main vi would later open other vis?

Thanks

Clement
0 Kudos
Message 1 of 2
(2,580 Views)
Hi Clement,
 
For VIs in subpanels the value of Front Panel Window:State is always Hidden.  I modified your code to use the Execution:State VI property.  Hopefully you'll find the attached subpanel.vi useful. 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,550 Views)