取消
显示结果 
搜索替代 
您的意思是: 

Sub Panel only opens once

已解决!
转到解答

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 项奖励
1 条消息(共 3 条)
2,737 次查看

Can you attach your code??

0 项奖励
2 条消息(共 3 条)
2,721 次查看
解答
已被主题作者 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 项奖励
3 条消息(共 3 条)
2,715 次查看