Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How I can save RAM memory when using a usb camera?

Hi.
How I could save or control RAM memory using a usb camera used to measure a crossed object distance?.
It shows the acquisition video camera before the user beginning to measure the distances and while it measures the distances.
The RAM memory consumption grows very fast when the program shows the images in the indicator images and stops all LabVIEW 8.2 that I use
I append the algoritm parts problem below. The part 1 file show the code that permits acquire the video frames before to mesure the distances and the part 2 file show the code that executes while the program measures the crossed object distances.
I tried to solve that using the IMAQ DISPOSE into the while loop to free memory space in part 1 code but an error generates indicating that there is not an image. I dont try to use the IMAQ DISPOSE out the while loop because the problem memory consuption generates into the while loop
All comments are welcome. Thank you

Download All
0 Kudos
Message 1 of 3
(3,317 Views)

Hello Yambito,

It's Simple,

Just add some 10ms delay in your while loop and let me know the result.

Regards,

Suhas

0 Kudos
Message 2 of 3
(3,303 Views)
Hi Suhas
Thank you for your response. It has been good, but the memory consumption keeps(85-90)% around
I have done some changes additionally to your suggestions. I have removed out the while loop the IMAQ CAST IMAGE in part  1 file
and I put the ELAPSED TIME VI into the while to calculate the time in part 2 file.(both files are showed below)
Is normally that memory consumption?
Is posible to reduce that?. Which is the way?
Sorry for stealing your time. I Know is important for you
Download All
0 Kudos
Message 3 of 3
(3,291 Views)