LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXIT Function does not work.

I have written a new application program which is fairly complicated. The run-time menu has an "Exit"
item name which causes the program to go to an "Exit"
state. The "Exit" state calls the Exit Function. This
procedure has worked in other similar programs but in
this program it only causes the program to stop but it
does not exit from the screen.
Do you have any suggestions as to what I might look
for in my program ? Thanks for your help.

Sincerely,
Larry Leach
Sverdrup Tech.,
Jacobs Engineering
0 Kudos
Message 1 of 3
(2,708 Views)
Dear Larry,

have you wired anything to the Exit function. If yes be shure that the value is TRUE. If it is FALSE this function will work as the Stop function.

I have never seen that this function will not work.

Does it really stop or does it only take a long time until the application will be closed? There was some discussion here about the fact that LV needs a lot of time to check for open references when VIs are unloaded.
Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 3
(2,708 Views)
There are programming error that can cause LV to take a long time to shutdown. I once wrote a GUI and forgot to close one reference. Everytime through the event loop the code just opened a new reference. After it ran for several hours there were tens of thousands of dangling references left in memory.

Now when LV went to quit it had to deallocate all the memory consumed by those references. All told, after running overnight the program could take as much as a half an hour to shutdown! The only way I caught it was watching the memory allocation when stopping.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 3
(2,708 Views)