RAM Issues When Streaming Images to AVI Files Using IMAQdx in LabVIEW

Updated Sep 28, 2024

Reported In

Software

  • LabVIEW

Driver

  • NI-IMAQdx

Issue Details

I have a GigE/USB Industrial Camera. I am using the Camera to export .avi files in LabVIEW using the IMAQdx functions. When running the VI, I can see from the task manager that my RAM usage is incrementing, and after some point LabVIEW is crashing because of running out of memory. How can I optimize my VI and is there any reference VI I can follow for the best possible performance?

Solution

LabVIEW has an example VI which delivers the best amount of performance when writing image files taken from a camera to a .avi file. It is located at: LabVIEW\examples\Vision Acquisition\NI-IMAQdx\Stream to Disk\Stream to AVI Files (Optimized Performance).vi

You can make that VI as a reference and modify it according to your application. The 2022Q3 version of the example  is also attached to this article.