Saving of IMAQ Frames Using Datalog Write VI Leads to a Memory Leak

Updated Sep 5, 2018

Reported In

Software

  • LabVIEW
  • Vision Development Module

Operating System

  • Windows

Issue Details

When I try to save IMAQ frames in LabVIEW using the Datalog Write VI I observe an increase in memory allocation. After the IMAQ frames have been saved not all the memory is released leading to a memory leak over time. What can I do to avoid this memory leak?

Solution

To avoid a memory leak when saving IMAQ frames with the Datalog Write VI you can convert the IMAQ frames to a string first using the IMAQ Flatten Image to String VI. After this conversion you can save the data using the Datalog Write VI.
To read back the IMAQ Images from the file you have to convert the string data back into an IMAQ frame by applying the Unflatten From String function.

WAS THIS ARTICLE HELPFUL?

Not Helpful