LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PopUp VI Hanging at Event Structure

Hello,

I am using a VI as a Popup to get some inputs from the user, which is having a while loop with an Event structure as shown in the attached image. Around 1 of every 5 times I launch this popup vi, it is getting hanged and I am not able to do any other actions since the popup is of model type. 

I tried debugging this issue in many ways and finally using Event Inspector I observed that, sometimes the popup VI is getting stuck at the entry point of the Event Structure and timeout Cases are not inspected by the Event inspector and if I click on the controls in the UI of Popup VI, those events are getting queued but not at all getting executed. 

Can anyone help me in finding the reason behind the Hanging of Popup VI.image.pngimage.png

 

0 Kudos
Message 1 of 19
(3,757 Views)

Do you have an error coming into that VI?  If so, the Error Case of the outer case will execute and not the No Error Case.  Events will queue up, but there is no path for the event structure to execute.

 

What is happening in the Error case?

0 Kudos
Message 2 of 19
(3,743 Views)

HI RavensFan, I have clearly checked it, I have wired an empty error constant while calling this PopupVI and also observed using some file writing debugging methods that, the execution is entering While loop but no the Event structure.

0 Kudos
Message 3 of 19
(3,740 Views)

Which events do you think are getting triggered but aren't executing?

What other events are in that VI besides the  Login Value Change that is shown in the screen shot.

 

Attaching the actual VI will allow us to see all the code.

0 Kudos
Message 4 of 19
(3,732 Views)

I have Only Timeout, Panel Close and Login Button Value Change events in the event structure. When i click Login Button, its Value Change is getting Queued in the Event Inspector Window, but even Timeout is not happening at that time and VI is hanged.

0 Kudos
Message 5 of 19
(3,724 Views)

I still don't see an attached VI.

0 Kudos
Message 6 of 19
(3,708 Views)

yeah, here i am attaching the popup VI.

0 Kudos
Message 7 of 19
(3,705 Views)

I'm not seeing that problem at all.

 

Timeout seems to execute.  And Login Value change executes when I hit the button.

0 Kudos
Message 8 of 19
(3,689 Views)

Edit:

Actually, I have no idea whether or not you want to keep this VI in memory or not.  Is there anything else the timeout does besides make your loop spin once every 100 ms?

 

I have a feeling we don't know enough about how this VI is used, so we don't know how to replicate the issue.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 9 of 19
(3,688 Views)

@RavensFan wrote:

I'm not seeing that problem at all.

 

Timeout seems to execute.  And Login Value change executes when I hit the button.


Time for a magic trick...

 

Breakpoints are removed during upload.   What is in that timeout case?  I can't see.  Rolling something at 10Hz when looking for user interaction is often a mistake. 


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 19
(3,679 Views)