LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to stop and close subvi without stopping main vi

I am working on a program in which my main vi, after meeting the conditions will pop up a subvi. On the subvi, there are two active buttons, one of them is a "Cancel" button, in which the subvi suppose to close and the Main vi will continue running. On my program, after clicking the Cancel button of the sub vi, the main vi hangs. and it needs to be stopped to refresh the main program. 

 

please help

 

Thanks.

0 Kudos
Message 1 of 18
(6,792 Views)

We can't help without seeing your code.  Please attach your VI's.

0 Kudos
Message 2 of 18
(6,787 Views)

Sorry, I forgot to attach the VIs.

 

 

Download All
0 Kudos
Message 3 of 18
(6,782 Views)

god you need to learn how to use event structure , dataflow...............

two event structure ?????????

one value is coming out from one while loop to another while loop ............

lots of comments can be made but first you refer LV basic 1 and 2 courses

0 Kudos
Message 4 of 18
(6,775 Views)

hey, i'm just a beginner ok?.

 

Other than reading, of course i want to learn LV through hands on. If this is annoying to you guys, then close this topic. I'll try to figure this for myself.

Message 5 of 18
(6,773 Views)

hey rctrigger,

                          Dont worry, you cant be expert in 2 days. If your subvi is in while loop then just stop the loop it will stop subvi. Here is an example. Modify accordingly

 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 18
(6,770 Views)

hi, can you save the VIs to a lower version (i have LV 10) 

 

thanks

 

0 Kudos
Message 7 of 18
(6,768 Views)

Here it is

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 8 of 18
(6,765 Views)

Learning the debugging tools in LabVIEW will be very helpful in figuring out what is causing the program to hang. In the block diagram, there is a lightbulb icon. This is the "highlight execution" button. This will show you the data flow through the program. Execution highlighting also slows the program to visualize the data flow. Additionally, you can place probes on the wires to monitor the values. This can be done by right-clicking on the wire and selecting Probe.

Here is a page with information on the Debugging Tools: www.ni.com/gettingstarted/labviewbasics/debug.htm

 

Since you are a new user, it's good to know that National Instruments offers training courses: ni.com/training

Taylor B.
National Instruments
0 Kudos
Message 9 of 18
(6,696 Views)

@TBirkulosis wrote:

Learning the debugging tools in LabVIEW will be very helpful in figuring out what is causing the program to hang. In the block diagram, there is a lightbulb icon. This is the "highlight execution" button. This will show you the data flow through the program. Execution highlighting also slows the program to visualize the data flow. Additionally, you can place probes on the wires to monitor the values. This can be done by right-clicking on the wire and selecting Probe.

Here is a page with information on the Debugging Tools: www.ni.com/gettingstarted/labviewbasics/debug.htm

 

Since you are a new user, it's good to know that National Instruments offers training courses: ni.com/training


Once he will start using labVIEW. He will be aware for all these. Thanks for your info. 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 10 of 18
(6,670 Views)