LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling SubVI's recursively !

Hello Everyone,
 
I'm trying to write a program which should have 5 panels; Main panel, Sub-main, Setting panel, and two Sub-panels. From the main panel, I should be able to call the sub-main and setting panels. Once I am in the sub-main panel I should be also able to go to the other sub-panels recusively. The problem is when I call one of the sub-panels, and try to go back to the Sub-main panel, it goes to the Main panel, instead, and stuck there because the sub-main is still running!
 
For calling the subVI I'm using a "case sturcture" inside wich I put the SubVI and set the "SubVI node Setup" to:
"Show Front Panel when Called"
 
I feel my explanation is a bit cofusing Smiley Indifferent, but hope some one can give me some hints to solve this problem.
 
Cheers !
Mike
 
 
0 Kudos
Message 1 of 3
(2,754 Views)
Hello,
 
To get an answer here, you should include a minimum example VI showing what you are doing.
 
You have to make any VI's that you try to call from more than one location Reentrant. Hit Ctrl + I (VI Properties) go to the Execution Category and hook off "Reentrant Execution". If you don't., you will have a deadlock if the VI is called from two or more places at the same time.
Geir Ove
Message 2 of 3
(2,724 Views)
Hi Mike,
Geir is correct, and if you follow this link, you should find the steps needed to find your solution.
 
 
Thanks and good luck!
reggier
Message 3 of 3
(2,679 Views)