07-10-2019 05:13 AM
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!
Solved! Go to Solution.
07-10-2019 06:21 AM
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.
07-10-2019 07:15 AM
Thanks. I use case structure and it works!