09-08-2005 12:09 PM
Solved! Go to Solution.
09-09-2005 11:51 AM
09-09-2005 03:09 PM
09-09-2005 04:37 PM
09-12-2005 08:23 AM
IMAQ and IMAQ 1394 are two totally different drivers. IMAQ provides the interface for analog and digital acquisition boards. IMAQ 1394 provides the interface for firewire cameras. You almost don't need the IMAQ drivers when you use a firewire camera, except they provide the basic utilities for image allocation, etc.
Bruce
09-13-2005 06:47 PM
Hello,
Instead of the examples that I referenced earlier, try loading Sequence.vi (found at: C:\Program Files\National Instruments\LabVIEW 7.1\examples\IMAQ\IMAQ1394 examples.llb). This VI will acquire a sequence of images and output an array of images. You could then use IMAQ AVI Create to create your AVI file and use a for loop to iterate through the image array. Inside of that loop, use IMAQ AVI Write Frame to write your individual AVI frames. After the loop finishes, use IMAQ AVI Close to close the memory reference to that AVI.
Try this and let me know if you have any additional questions.
Regards,
Scott R.
Applications Engineer
National Instruments
09-14-2005 09:12 AM
Hi Scott,
Thanks for your help. The VI works like a charm. I applied the same idea you suggested to grabbing a video and storing it as a .avi file although I am not sure if this is the best way to record a continuous video of the process. Your suggestion would be appreciated in this regard.
I am wondering if there is a limit to the number of images you can capture using the combination of sequence and storing as a .avi file. While working with the VI I created yesterday, whenever an input was given asking to capture 900 images (30 second duration at 30fps), I kept getting the following error:
_______________________________________________
Error -50353 occurred at an unidentified location
Possible reason(s):
One or more memory pages in the specified logical buffer could not be locked into physical memory. The operation could not be completed as specified.
_____________________________________________________
09-15-2005 03:03 PM
Ram,
What are the dimensions of your images? What bit-depth are you using? Those two factors will determine the size of each frame of your AVI. For example, if you are using a 640 x 480 image with a bit-depth of 8 (byte-depth of 1) then each frame will use 300 kB. An AVI with 900 frames of that size will use 263.67 MB. This does not exceed the limit on AVI size, but if your image dimensions or bit-depth are larger, then you might exceed that limit. If your images are color, then that will also affect the image size, as the above result would be multiplied by 4. Also, that is 263.67 MB of memory that you must have available for the operation. If you don't have enough disk space or memory, then that could cause the error that you described. How much memory do you have installed in your system?
Regards,
Scott R.
Applications Engineer,
National Instruments
09-21-2005 12:19 PM