LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control elements are out of control in event structure

Solved!
Go to solution

I have a programm that has 4 cases in Event handler. In third case there is a while loop, after that I can't klick the control elements any more. But I have tried that without this while loop the event handler worked well.Thanks in advance.

 

Regards 

Guo Zhongge

0 Kudos
Message 1 of 10
(4,131 Views)
It just sounds like your While Loop is not ending. If it is still spinning, nothing on your panel will respond that isn't in a parallel process (separate loop).
Richard






0 Kudos
Message 2 of 10
(4,126 Views)

Hi!

Posting the vi or an image will help those who want to help you.

What is happening, in my opinion,  is that the Event structure is waiting for the while loop to finish before processing the next event.

 

Marco

0 Kudos
Message 3 of 10
(4,123 Views)
0 Kudos
Message 4 of 10
(4,107 Views)

As also pointed out by Broken Arrow,

your while loop keeps running, blocking the Event Strucure.

In order to solve the problem you have to split the different tasks of your code in parallel loops.

 

 

Marco

0 Kudos
Message 5 of 10
(4,095 Views)
After control element was klicked, I wanna process the while loop. Until another control element is clicked I can stop this loop and wait for other cases.
0 Kudos
Message 6 of 10
(4,087 Views)
How to split?
0 Kudos
Message 7 of 10
(4,085 Views)

Look in the LabVIEW New file (File->new...) for the Producer Consumer structure.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 8 of 10
(4,076 Views)
Solution
Accepted by Guo Zhongge
0 Kudos
Message 9 of 10
(4,072 Views)
I have used that structure. Until now that is only possible to react with first calling. Is there a way to let the occurence react with second, third ... .
0 Kudos
Message 10 of 10
(4,042 Views)