LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory used keep raising

Hi,

I made a very simple VI with a while loop and a numeric control to show the iteration number of the loop.

I built an exe for it.

I run the exe and keep looking at the task manager. I see that the memory keep raising slowly. The way I can reduce the used memory is to minimize the window, then maximize it. After minimizing it, the memory drops by a lot (which is expected), however, after it's maximized again, the memory re-raised, only from a lower start.

Even if I minimize it, and keep it there, the used memory increased also.

I expect a constant used memory value.

Is it solely a problem of my code?

Please check the attachment for my code and the exe.

I am using LV8.6 with Windows server 2003.

Thanks,
Raymond

Download All
0 Kudos
Message 1 of 5
(2,939 Views)

Dear Raymond,

 

Wait.jpg

 

I think you are confused between wait and wait until Next ms Multiple function. If you replace your wait until Next ms Multiple function with Wait function this will resolve your issue.

 

 

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 2 of 5
(2,930 Views)

Hi Raymond

 

I just downloaded the Untitled 2.vi file. It works fine on my computer and does exactly what I would expect it to do. Allthough I would probably change the false constant on the while loop termination to a control rather than using the Abort execution button.

 

What number does your Numeric indicator reach before you see any significant change in your memory usage?

 

/Sletten

0 Kudos
Message 3 of 5
(2,923 Views)

@Himanshu Goyal wrote:

If you replace your wait until Next ms Multiple function with Wait function this will resolve your issue.


That statement makes no sense. Can you explain the logic behind it?

0 Kudos
Message 4 of 5
(2,920 Views)

vgbraymond wrote:

I made a very simple VI with a while loop and a numeric control to show the iteration number of the loop.



LabVIEW 8.6 is pretty ancient, so I cannot test (I also don't have the 8.6 runtime engine currently installed to test your exe).

 

Your post is very light on real information. Can you give some actual numbers for your observation. Does the memory increase by bytes, by kB, by MB, by GB??? What is the rate of increase in B/s, for example? How big is the change when you minimize/restore the window?

 

There should be no memory leak in your simple program. That would make very little sense. Do you run plain 8.6 or did you apply any patches? Is the run time engine 8.6.1 or 8.6?

 

How much memory do you have on the computer? How much is free? What else is running?

0 Kudos
Message 5 of 5
(2,917 Views)