LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sub Panel only opens once

Solved!
Go to solution

I have a series of sub vi's which are set to open the front panel when called, this works OK, but in each of these sub vi's called a sub panel from my main DAQ vi which is in a separate task I use sub panel open and close each time a sub vi is opened or closed but the sub panel only opens the first time it is called the DAQ task is started and stopped each time a sub panel is opened & closed

0 Kudos
Message 1 of 3
(2,415 Views)

Can you attach your code??

0 Kudos
Message 2 of 3
(2,399 Views)
Solution
Accepted by topic author John_Deans

Fixed it!.   The full code is huge some 100 vi's or more so I made some test vi's to post and found the problem

in the process. If you look at the code in the Zip file the top level vi calls the process vi ,which opens in a window

and starts the sub panel vi. A notifier is used to run the second loop in th sub panel vi which fills the "DAQ progress" indicator which sound be visible in the sub panel on process vi front panel.

The problem was that because the sub pannel was vi was in a vi within the loop contoroled by the notifier. I used the first run primative to only call structure with the comment "set position" (to set the position of the of the indicator in the sub panel) only once, to save run time. so if I ran the process vi on its own all worked well. however when called from the top level vi the first call only allowed the set position to run the fist time .  

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