LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to Stop a SubVI from MainVI using Notifications caused SubVI to Hang/UI Unresponsive/Locked

Hi,

 

Backgound..

 

I have a QSM design SubVI which runs nicely. The SubVI terminates smoothly via a logout state which queued by an event loop.

 

This SubVI works perfectly as a standalone.

 

Now, I am plugging the SubVI into a MainVI via Start Aysnchonous Call. The SubVI runs in a subpanel of my MainVI...Still perfect no problem.

 

Now... when I exit my MainVI I want to send a notification (boolean) to my SubVI which will cause an event in my subVI. This Event will queue the logout state to the SubVI.

 

Problem..

 

No matter how I try to do this, as soon as a place a obtain notification and wait on notification inside my SubVI, the SubVI runs but the UI becomes totally unresponsive.(actually locked, no buttons or anything even clicks)......?

 

Anyone know the solution? Below is a snippit of my subVI. You can see the Obtain Notification is opened outside all loops. The Wait on Notification is in an IO polling loop to ensure it is polled reasonanly frequently. Same locking up occurs if the wait on notification is in the Event loop, in its own loop...anywhere!

 

 

CodeSnip.PNG

 

 

 

0 Kudos
Message 1 of 2
(2,158 Views)
Your logic is somewhat confused and it's hard to see what is really going on in a screenshot, but my recommendation is to use a user-defined event to stop things, then you don't need to poll anything.

Also why are you firing the value change event when the output of the notifier is false? There's no point.

The reason the thing is locking up is that you are firing a value change event that isn't getting serviced -- which is the default behavior for control events.

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 2 of 2
(2,153 Views)