LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Top Level VI has DELAYED Shutdown

Hi,

I'm working on an application that uses subpanels to display different GUIs of several subroutines running in the background. The subroutines are run by reference at start up using the invoke node RUN method and then shutdown using the Control Value Set method. A user can select any specific subpanel. The remove subpanel method is called before each insertion of a subpanel vi.

 

The issue that I'm having is that the main top level vi does not shutdown immediately when you click the exit button and this delay increases depending on how long the main vi has been running. I didn't notice this issue initially because I only run the vi for a short time to check my code. 

 

I don't see any errors when I shutdown the application with execution highlights activated. I only notice a buffering type delay before the vi exits and I can't the source of the delay.  When I tried adding remove method to the "stop and close VI refs" routine I get invalid method error message.

 

I will appreciate any recommendation and suggestions. The application is large and also due proprietary reasons, I cannot post attach the code.  Please see attachments for some screenshots of the code and main vi front panel during a delayed exit.

Download All
0 Kudos
Message 1 of 3
(1,123 Views)

I didn't look at your pictures.  It's impossible to debug pictures.  Probably no one on this forum will try.  Post your actual VIs.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 2 of 3
(1,071 Views)

Thanks for your reply. I was able to find cause. It was completely unrelated to the subpanels or VI references. It was queue that was updating one of the VIs running in the background.

0 Kudos
Message 3 of 3
(1,067 Views)