LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to re-open a subVI dynamically?

Hi,
This is sort of a follow up to a question I had posted earlier about dynamically opening and closing subVIs. I have been able to bring up a subVI from my main VI and then close it on the fly by setting the subVI properties to Open front panel when called and Close afterwards. Now what I can't seem to do is to repeat this process. It comes up opened and then I can close it and the front panel of the subVI closes. (all good) But then when I change the enumeration on my main VI to display another panel it does not? Please let me know if I'm not being too clear.
0 Kudos
Message 1 of 3
(2,699 Views)
What do you mean by "display another panel?" You may need to make the VI
reentrant if you are trying to run multiple instances of the VI
concurrently. Just a thought for starters.
-Tom

"Helper" wrote in message
news:506500000008000000FC350000-1007855737000@exchange.ni.com...
> Hi,
> This is sort of a follow up to a question I had posted earlier about
> dynamically opening and closing subVIs. I have been able to bring up a
> subVI from my main VI and then close it on the fly by setting the
> subVI properties to Open front panel when called and Close afterwards.
> Now what I can't seem to do is to repeat this process. It comes up
> opened and then I can close it and the front panel of the subVI
> closes. (all good) But then when I change the enumera
tion on my main
> VI to display another panel it does not? Please let me know if I'm not
> being too clear.
0 Kudos
Message 2 of 3
(2,699 Views)
Did you look at the sample code I posted on your question yesterday? It shows a simple state machine opening and closing 2 different displays.
Message 3 of 3
(2,699 Views)