02-26-2015 11:36 AM
Hello all,
I am new to LabView. I made a programm for capturing images with a CCD Camera. For aquiring images I use the SubVI library of the manufacturer.
What I noticed is, that the Front Panel reacts in accordance with the chosen exposure time. So for example, when I want to change some camera options while aquiring images and I choose a 10 second exposure, the Front Panel will react to a click after 10 seconds. If I choose 0.1 seconds exposure it will react "instantaneuosly".
Is there a way to use the function for aquiring images independently from the Front Panel?
Best regards
02-26-2015 01:42 PM - edited 02-26-2015 01:44 PM
I'm guessing that you have the acquisition loop in the same loop as your front panel display items. You need to decouple the front panel display loop from the acquisition loop. For a start try to put the image acquisition code in a parallel loop and use queues to send the images to the front panel display loop.
02-27-2015 02:47 AM
Hey quis78,
is it possible for you to post the LabVIEW-Code in your forums post? It would be more effective, if I could see the programm and how things work inside.
Regards, Stephan
02-27-2015 07:31 AM
Put your user interface code in a separate loop with an event structure to capture button clicks, etc. This way the button click events will be handled as soon as they occur. Meanwhile the (slow) camera acquisition code runs in a different loop at its own speed. You can write the camera frames directly to a front panel indicator if all you want to do is display it, or pass it around to other processing or logging loops using queues or other data transfer methods.
There are many examples and templates in the 'Create New' wizard - look at the User Interface Event Handler template or most of the other design patterns use event loops, and there are several examples in the examples finder.