LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Video client using IMAQ "Not enough memory to perform operation"

Hello,

 

Could you, please, help us with urgent issue with IMAQ Video client out of memory issue. We have a video server to stream out video images a rate of 7 frames per second (8-bit gray scale 2000x512 pixels). Our client VI capture the iames and do few operation like display cross, overlay feature on top of the images and display on the screen. The issue is, once for a while we get error message "Not enough memory to perform this operation". We would close the message and the process continues on without interruption. But it really frustrating issue for us.

 

Colld you help to:

 + explain the root cause

 + provide some method to improve IMAQ memory allocation to avoid this issue

 

Greatly appreciate your help.

 

Son Lam.

0 Kudos
Message 1 of 2
(2,228 Views)

Hi Son,

 

Good Morning and I hope your well today.

 

Thanks for the post.

 

Would it be possible for you to post your code?

 

A few things to watch out for:

1) Make sure you close references when you no longer require them. For example, either save the image to file and/or use IMAQ Dispose to remove the image at the reference out of memory. 

Note: So aim not to store all frames in memory all the time until the end of the application. 

2) Try to pre-allocate memory at the start of the run, rather than building arrays during running time.

 

Maybe a look at your code will provide more tips?

Thanks, and hope this helps. 

Kind Regards
James Hillman
Applications Engineer 2008 to 2009 National Instruments UK & Ireland
Loughborough University UK - 2006 to 2011
Remember Kudos those who help! 😉
0 Kudos
Message 2 of 2
(2,219 Views)