LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Front panel locking with event structure

Solved!
Go to solution

Hi,

 

I write a program to get a image from camera in Labview. I want to extract image taken from live image. Therefore I added event structure to press the OK button and extract image. But when I start camera then my front panel get locked. I would like to change values on front panel before extracting image. What should I change in my program to avoid locking and to be able to use front panel? Thanks in advance!

 

Download All
0 Kudos
Message 1 of 3
(1,946 Views)
Solution
Accepted by topic author michaelsteffens

Your loop locks, because it's waiting for the event structure to finish. It won't finish until you press the button. Use execution highlighting to witness this.

 

You should either not use an event structure, but a case structure, or use the event structure in a different way. Put the 'always running' code in the time out case (make subVIs so it stays small) and the Boolean action in the value change event.

 

Also, close those references to 'memory' you're opening! It will leak memory if you don't.

0 Kudos
Message 2 of 3
(1,911 Views)

Thanks. I use case structure and it works!

0 Kudos
Message 3 of 3
(1,895 Views)