04-05-2007 07:08 AM
04-06-2007
10:01 AM
- last edited on
06-07-2024
01:47 PM
by
Content Cleaner
Hi John,
Are you using the AVI File Write form the library that you received from the LIB that came with your camera? Or are you using the imaqWriteAVIFrame function? If you are using that function, then you can only write one frame at a time. You are probably passing an array of Images when you get that error. If you index through the array and write one image at a time it should work. Also keep in mind that it must be the IMAQ data type. The way to do that is to use the Array to Image function. This function is only available in the Vision Development module. I hope this helps.
Have a great day,
GG
04-07-2007 07:09 AM
04-09-2007 06:43 PM
Hi,
The imaqWriteAVIFrame function is expecting an image data type. The buffer you are using sounds like it contains an array of images. So you will need to convert each image to the imaq data type one at a time. And then each image needs to be passed into the imaqWriteAVIFrame function. Is this what you already tried? Also make sure that you are creating the AVI refnum by using the IMAQCreateAVI function. You may want to try passing in an image from a file, to see if you get that same error with other images. I hope this helps.
Have a great day,
GG
04-10-2007 01:58 PM
04-11-2007 07:55 PM
Hi,
Sorry if my last post wasn’t very clear, I neglected to mention that to write to an AVI your image needs to be an 8 bit or RGB image. If your image is any other data type then you will need to convert it to 8 bit or RGB before writing it to an AVI file. I hope this helps.
Regards,
GG