Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Save image sequence to file

Hi Folks,

I know this question was discussed before but I simply couldn't make it work. I'm using labview 8.2.1 and I want to be able to both configure the camera and save a sequence of images. So I did the following, I combined two examples from example finder:
(1) Hardware input and output-->IMAQdx-->High-Level-->Grab and Attributes Setup.vi
(2) Hardware input and output-->IMAQdx-->High-Level-->Sequence.vi
In my program, I completely copied the first example and modified the second example to make it automatically save the image sequence to a sequence of image files (img0.png, img1.png,.....), as you can see from my attached .vi file.
But when I looked at the saved image files, for example 10 images, only the first one or two images seemed correct, the following were all wrong images. I searched pervious topics, and am wandering if this has anything to do with the image buffer? People have suggested using Save to avi.vi example, but this example is inside IMAQ category and I didn't find attribute setting example file in that category.
Can some one tell me what is wrong with my code and if possible is there any similar example file that might fit my purpose? Thanks in advance!

Jerry
0 Kudos
Message 1 of 3
(3,415 Views)
Hi Jerry.
I do not have access to a camera right now. So here is my guess:
Maybe, the Event "<Session Out>:Frame Done" makes your VI misbehave.
Regards, Guenter
0 Kudos
Message 2 of 3
(3,379 Views)
Another approach is: Make your VI lean (and clean).
Look at e.g. Bruce's post on how to use IMAQdx property nodes (e.g. to configure the values for the shutter speed and the gain). You will find the post here.
Then you can remove the entire upper part of your block diagram.
Hope this help, Guenter

0 Kudos
Message 3 of 3
(3,378 Views)