LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User interface is locked

I am attaching one simple vi which demonstrate the problem of user interface hanging.

Perform the following steps
1. Click the stop button twice very quickly so that vi does not get close.
2. Click on the cross icon at the top right corner of the window to close the vi.
3. After that user interface get hangs that is it stop button does not respond to click , you cannot change the scale of gauge or enter text in text box.

Regards
Uttam
0 Kudos
Message 1 of 3
(2,854 Views)
You have a race condition. The slower loop reads the control after if has switched back. There are a number of ways of fixing this. I will attach one but there are many more.
0 Kudos
Message 2 of 3
(2,854 Views)
Thanks for your answer I understand the problem but this is very simple version of my actual application.
I will try this with application. I will be so nice of you if you can send some more exapmles at ukotdiya@securemeters.com or post them here.
But the problem is that events in LAbview are pllong based and not events like in other languages like VB,Delphi.
Regards
Uttam
0 Kudos
Message 3 of 3
(2,854 Views)