LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ light meter

Solved!
Go to solution

Hi,

 

I'm testing an application which uses IMAQ light meter, in a loop at 60hz. (vision project)

 

Memory usage increases in time, around 100kb a minute.

 

when I put a disable diagram around this light meter, memory usages stays constant in time (checked for half an hour)

 

This means to me, that in the Light Meter VI, something is wrong and causes a mem leak?

 

what could I do about that.
My applications needs to run 24/7 days a week, so I can't allow any memory leakage / increase.

Thanks for your responses

Bruno Sas 

0 Kudos
Message 1 of 18
(5,074 Views)

Can you show your code please? or at least a screenshot of it.

 

Tryin' to help


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 18
(5,066 Views)

Yes, here it is;

 

the screenshot shows the light meter which is disabled; than there is no increase in memory usage in time.
If I remove the disable structure, mem usage grows gradually

 

Thanks for looking into this already

 

Bruno 

0 Kudos
Message 3 of 18
(5,064 Views)
For me it works stable
LightMeter.png

 

0 Kudos
Message 4 of 18
(5,055 Views)

Got it. Seems to be memory usage increases when Timed loop used. Something wrong with threads.

 

Light2.png

 

Try to replace Timed Loop with simple While loop in your app.

 

Andrey.

 

Message 5 of 18
(5,050 Views)

Can be submitted as clear bug in VDM (I using LabVIEW 2010 / VDM 2011)

 

Leak.png

Message 6 of 18
(5,038 Views)

I tested it with a normal while loop, and it's the same, increasing memory usage.

I tried it in a small test program to ensure nothing else matters.

again disabling the light meter helps keeping memory usage constant.

 

Bruno 

0 Kudos
Message 7 of 18
(5,028 Views)

No, with IMAQdx I unable to reproduce this behaviour.

 

0 Kudos
Message 8 of 18
(5,018 Views)

Might be worth trying to edit this vi (save it locally to your project),

in sequence 2 it creates a temporary memory space and destroys it, possibly a memory leak?

you could create this space once and pass it in.  I have had issues with creating and destroying memory spaces in loops in the past.

 

This is just speculation.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 9 of 18
(5,011 Views)

Ok, i see now, we are looking at different numbers:

 

In the graph of your vi, indeed, it stays +- constant.

But I look in the task manager under processes, and then  the memory tab as shown below.
Although the graph stays constant, mem usage keeps growing in the task manager

 

when I disable the meter, memory usage stays constant  in the task manager aswell..

 

ni screenshot.png

0 Kudos
Message 10 of 18
(5,011 Views)