LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sub VI

Hi everybody,
 
My application displays some informations in the first window and in this same window I created button wich I use to open a second window wich displays a grah, so I have two windows runing simultaneously, ((knowing that the graph plot the same informations wich are displayed in the first window)); my problem is that I loose control on the first window when I open the second.
 
Someone can help me please!!!!!!!!!!!!!!!
0 Kudos
Message 1 of 7
(3,928 Views)
Hi, Basile,
It seems to be that you have marked second windows as Modal. Go to VI Properties -> Window Appearance -> Customize... and switch from Modal to Default (or to Floating).
Andrey.
0 Kudos
Message 2 of 7
(3,922 Views)
Hi Andrey ,
Thak's for your help, but the two windows are marked as Default so I tested with Floating and no result Smiley Sad
0 Kudos
Message 3 of 7
(3,903 Views)
Hi Basile,

do you call the subvi by simply puting it's icon in the block diagram of the main vi?
Then (most probably) the main vi will have to wait until the subvi finishes before it can continue to execute!

It's rather hard to give comments/tips when you don't show your vis nor give helpful information... How do you "loose control"?


Message Edited by GerdW on 07-10-2008 03:06 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(3,894 Views)
Hi GredW,
Thanks for your help, I attached the VI and its sub VI you can run it to see my problem.  
Download All
0 Kudos
Message 5 of 7
(3,887 Views)
Hi Basile,

as I suspected: your subvi is blocking the main vi. And additionally the event case is set to "lock the frontpanel" (checkbox in the lower left of the event editor window)...

I changed both vis: making the subvi non-blocking (no while loop, no event structure), changing the visibility control of the subvi frontpanel in the main vi. Hope this helpsSmiley Wink
I also enabled digital displays for your slide controls to delete the additional numerical indicators.


Message Edited by GerdW on 07-10-2008 06:47 PM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Download All
Message 6 of 7
(3,861 Views)

Hi GredW,

Thank you very very much, it's exactly what  I was looking for  Smiley Happy

0 Kudos
Message 7 of 7
(3,843 Views)