LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

abort one LV application while leaving others running

H LV community.
How do I do to abort one LV application while leaving others running, if there are 2 or more LV applications running?
 
Most of the time, I always use "Quit Labview" function before compiling my LV application.
So no what would happen if I have 2 or more LV applications running?
 
I read each function's details
 
1) Quit LabView - Stops all executing VIs and ends the current instance of LabVIEW
 
2) Stop - Stops the VI in which it executes, just as if you clicked the Abort Execution button on the toolbar
 
So when I used the stop function, the LV application would not exit, instead, it stops with revealed menu bar which I had orginally disenabled showmenu bar.
 
 Please advise thanks
 
Clement


Message Edited by astroboy on 07-08-2008 09:27 PM
0 Kudos
Message 1 of 7
(3,956 Views)

Hi all

 I am not sure if this is the right method.

After the out of the last loop, I insert the vi method's Close FP in the case of APP.Kind

However, I noticed that it took sometime for the application to complete after exiting. It would take 4 seconds. Is this normal?

Clement

0 Kudos
Message 2 of 7
(3,945 Views)
Hi all
 
Quit LabView - Stops all executing VIs and ends the current instance of LabVIEW, as is stated in the LV's help. But It does not seem.
Is that correct, whichever is aborted, all the vis built in this application will be aborted and closed, without affecting the other separared LV applications. Is that correct as i had tested it?
 
Clement
0 Kudos
Message 3 of 7
(3,931 Views)
Hi Clement,

Quit LabVIEW, when compiled into an exe, will quit the current instance, i.e. the current application. Other applications (including LabVIEW development environment and other compiled LV applications) will continue running.
But anyway, Quit LabVIEW is not really the recommended way to terminate an application.

Daniel

0 Kudos
Message 4 of 7
(3,920 Views)
YOu could use a subvi instead and enable "show front panel when called" and "close afterwards when originally closed".Quit labVIEW is defenitely not the recommemded one.

Hope it helps!!!
0 Kudos
Message 5 of 7
(3,913 Views)
If you have a built application and want to automatically close the window when done, then Quit LabVIEW IS the recomended way as long as you have properly closed any open references, DAQmx tasks, etc. first. Using the Quit LabVIEW will not affect any other built applications. I usually put in a test of whether the app.kind property is Run Time System and put the Quit LabVIEW inside a case statement. That way, it will not quit when I am in development mode.
0 Kudos
Message 6 of 7
(3,883 Views)

Hi All. Thank you for your useful tips.

Clement

0 Kudos
Message 7 of 7
(3,804 Views)