Hi all, I'm currently writing a VI to capture a user-specified number of frames, write them to an AVI and then play the subsequent AVI back. I have tried to do this using the AVI functions in vision utilities>files>avi. My VI writes the AVIs fine, i've had no problems playing the AVIs back from windows explorer. However I cannot get the AVI to play back within Labview, i've tried using IMAQ AVI open and reading the frames back one by one in a for loop using IMAQ AVI read frame and then the picture display control but still no joy.
The two functions seem to clash with the write function, if I put them in the same AVI session I get the error
'Error -1074395708 occurred at IMAQ AVI Read Frame The AVI session is a write session, but this operation requires a read session.'
When i close the write session, re-open it using IMAQ open AVI and then read and display the frames, (again in a for loop) i get the error
'Error -1074396077 occurred at IMAQ AVI Read Frame. Incompatible image type.'
I used IMAQ create to input the image into the AVI read function. According to the help IMAQ AVI read frame can read grayscale (u8) and RGB (u32), but even when the image type is set to one of these two it still doesn't work. The camera I'm using is a Sentech SC-1000, which is black and white so I'm surprised the grayscale option doesn't work.
Can anyone tell me what sort of image IMAQ AVI read frame requires? Or how to turn a sequence (acquired using IMAQsequence) into an AVI?
Any help would be very much appreciated - thanks:)