11-04-2015 11:29 AM
Hi everyone,
I am having trouble trying to figure out how to save a stack of images from my camera. I either get errors or end up getting prompted to save each image as it is taken. Ideally I would like to be able to select where to save the file once either via a prompt or drop down in the VI and that have the program save the rest of the files after that in sequence. (without a prompt)
11-04-2015 09:36 PM
An IMAQdx camera can take a single image ("Snap"), which you can save as a PNG or JPEG, or a video ("Grab"), which you can save as a Video file (such as .AVI). The advantage of saving a (single) Video session as a (single) Video file is the basic simplicity of it all -- you open a single file, then feed the successive images (from the Grabs) to a IMAQ Write function that writes a frame of the video.
If you really want a sequence of multiple single images (such as a "stack" of PNG files), you need to generate a sequence of file names, as each image gets its own file (name). Note that you can easily open a Video file, read a frame, write an image, and repeat until you've made PNG copies of all of your frames.
So for Videos, either a single Video file or multiple PNGs.
Bob Schor
11-05-2015 09:39 AM
You are trying to use the same filename for each picture. You can generate unique file names using something like the loop iteration or a time-stamp.
11-05-2015 11:23 AM
Thank you for your kind replies! I'm trying to implement some of the things you two have mentioned.