LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i supress SUBVI pop up while running Main VI

Hi All
i am really frustrated with this SUBVI pop up when running the main VI and its needs step out(cntrl + right arrow) operation for the MainVI to run.
i tried seeing through the SUB VI properties and they do not have the option of "show fron panel when called" or "show front panel when loaded" option checked.
 
Also when the VI completes its operation it stays for us to click on stop button and does not stop as supposed 😞
 
how can we get rid of this pop up of subvi and run the Main VI in continues mode?
 
 
 
i am attaching the Main VI and instr drivers(sub vi's) for my test.
 
please go thru the same.
 
Thanks in advance
 
Sandeep K Shyam
Download All
0 Kudos
Message 1 of 2
(2,627 Views)
Hi Sandeep

You have applied a breakpoint in the Keitley 2010 scan config.vi  This is the reason why the subVi is showing when you are running the main Vi.
Remove the breakpoint from the subvi.
For removing the breakpoint, open the subVi click on Tools palette in View>>Tools Palette and choose breakpoint and click on the Block diagram.
When you use breakpoint in a subvi, it stops the execution and shows the block diagram. you can notice a red line along the Block diagram which shows that you have applied a break point in that Vi.
I also see that you are calling the same subvi in the Vi. This is wrong, you cannot call a same subvi in the Vi itself, it will be recurssive.

For your vi to stop when the operation is done, you need to program it that way. You can use a While loop for that, and just pass the error out of your Vi to the conditional terminal of the while loop. The conditional terminal of the while loop should be stop if true. So if your Vi executes properly it will send a true value to the conditional terminal and the Vi will stop automatically.

Regards,

Nitin
0 Kudos
Message 2 of 2
(2,617 Views)