05-09-2011 10:52 AM
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
Solved! Go to Solution.
05-10-2011 03:58 AM
Can you attach your code??
05-10-2011 05:58 AM
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 .