LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a sequence to an AVI using IMAQ

Hi,

   I am trying to save a sequence of acquired images to an avi file. I do not know how to create a buffer and pass the image to the buffer and then get an AVI from the images stored in the buffer. For imaqdx the imaqdxGetImage function is very useful. But I am unable to find such a function for imaq. If there is any function like this kindly inform me. Otherwise I need help to create a buffer and pass the images to the buffer and then create an avi file from it. Remember that my problem is that I am using imaq and not imaqdx.

 

 

Regards,
Farhan Ahmad.
0 Kudos
Message 1 of 3
(3,544 Views)

Hi,

 

You would use the IMAQ AVI Write Frame VI (Functions >> Vision and Motion >> Vision Utilities >> Files >> AVI) to write images to an AVI file. As you can see, you would have to write one frame/image at a time to the AVI file, not an array of images at once. So, if you create an array of images, you would have to index through the array, extract each frame and then write them one by one to the AVI file.

 

This is exactly how it is done in the 'Sequence and Save to AVI' example VI which uses the IMAQ driver. You can find this example in the Example Finder under Hardware Input and Output >> IMAQ >> File Input and Output. I hope this helps!

Vivek Nath
National Instruments
Applications Engineer
Machine Vision
0 Kudos
Message 2 of 3
(3,519 Views)
A CVI example would help even more...
0 Kudos
Message 3 of 3
(3,511 Views)