LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Subvi Loading when Main application is opened

Hello, I have a main application which I would like to sometimes launch a subvi which adds some additional calculations. My problem is that when I load the main application, the subvi loads aswell. I can close it and then it works fine to open and close etc. I have unchecked all the subvinode setup attributes as well as the vi proporties but this does not seem to change things. I have attached a pic of the vi hierarchy and the subroutine shows a red highlighted thread from the main application, not sure what this means. Any help would be appreciated!!
0 Kudos
Message 1 of 5
(2,511 Views)
Hi,
WHat you will have to do is better show a snap shot of your main Vi block diagram for better understanding,may be one more thing have u checked the radio box in the vi propertise which says open and close when called.
else just attach your vi may be we can help you in this.
cheers
vicky
0 Kudos
Message 2 of 5
(2,507 Views)
Hi, I have attached a back panel view of the Vi and it's properties, the subvi which I am trying to load is in the case structure. These are the current settings I am using and now it seems to not open the subi when it loads but now another problem. If I use the boolean control to open the vi it trys to open but sits underneath the main vi and does not respond to any actions. Everything works great until I build the application then it goes wonky!!
0 Kudos
Message 3 of 5
(2,499 Views)
Hi,
so your first problem is sloved,now what may be the solution for your next problem is that you have made the main VI front panel as dialog or stay in front,by this what happens is you will not be able to load any other panel,so make sure you have the stay on top or modal for all the panels or else for none of the panels,by this you will have only the panel which you want in front as stay on top so till you close that particular one you will not be able to go to the next,this will solve your problem i hope.
cheers
vicky
Message 4 of 5
(2,482 Views)
Thanks, that seemed to do the trick! I changed all vi's to modal and now it runs smoothly, thanks for your help!
0 Kudos
Message 5 of 5
(2,474 Views)