01-04-2017 04:41 PM
Hello everyone,
I am using Vision acquisition, to capture the image via USB camera. I want to capture only a single image after some adjustment with USB camera, but my problem is while selecting the "Continous Acquisition with Inline processing" ,than "Acquire Image type : Acquire Most recent Image" and "Enable Image Logging", I am capturing all the images as long as the 'While Loop' runs. (I am keeping Vision Acquisition in While loop). I also want to use the final image as 'Image In' in 'Machine vision'. I am providing VI file herewith.
In other modes (i.e Finite Acuisition with Post Processing, Finite Acuisition with Inline Processing ), I capture the Finite images as soon as the camera (loop )starts and not able to adjust the camera.
Thanks 🙂
Solved! Go to Solution.
01-05-2017 06:44 AM
Hello nisargsolanki,
selecting "Coninous Acquisition with inline processing" tells the camera to continiously capture images. The option "Acquire Most Recent Image" just means that it is possible that you miss images because taking the pictures is faster than logging them. That means: If the camera captures 10 images between every NI Vision Acquisition Express VI call, you only log the last one of the 10 images.
If you want to just log one image you need to select "Single Acquisition with processing".
01-05-2017 04:29 PM
01-05-2017 05:09 PM
Hallo Wolfgang,
Thanks for your reply.. 🙂
Yes, I understand it acquires most recent image out of 10 images it captures. But what I want to do is I want to log only last image (and not the last out of every 10 images it captures) .
If I use 'Single Acquisition with processing', it logs the image as soon as camera turns on and I will not get time to adjust it.
(Simple: like how we captures the photo in our smart phone is we first open the camera and set the frame according to our choice and than we press click and we get the single image, which we captured (logged), that is what I want to do, open the camera - adjust the frame- capture - get the single logged image 🙂 )
01-05-2017 05:11 PM
Hi Hatef,
yes, I want to see continuous online camera image but capturing and logging just last image.
Thanks 🙂
01-05-2017 05:30 PM
01-05-2017 05:54 PM - edited 01-05-2017 05:58 PM
What about using Vision Acquisition Express VI with 'continuous acquisition' (and without 'enabled image logging') in a while loop, make the adjustments and then stop the loop. After the loop is terminated, call another Vision Acquisition Express VI in single acquisition mode to log one image.
01-05-2017 06:00 PM
01-05-2017 06:09 PM
Yes, you´re right. As I see you´ve already given three better ways to accomplish the goal.
01-06-2017 06:59 AM
Hi Hatef,
Thanks for your 3 suggestions, I want to use 1st method but facing a difficulty. It is saving all the images and not the last. Could you please check.
Thanks 🙂