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
(3,732 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
(3,727 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
(3,724 Views)
0 Kudos
Message 4 of 10
(3,708 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
(3,696 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
(3,688 Views)
How to split?
0 Kudos
Message 7 of 10
(3,686 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
(3,677 Views)
Solution
Accepted by Guo Zhongge
0 Kudos
Message 9 of 10
(3,673 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
(3,643 Views)