11-09-2007 02:53 AM
11-09-2007 08:13 AM
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
11-11-2007 10:28 PM
The pc is almost the same, but only has 256M ram, the executive is the same.
I just want to know how to check the memory usage inside the running LV exe. And if there is memory leak?
Any method to recycle the memory?
Thanks
11-12-2007 08:03 AM
It is not unusual for LabVIEW itself to use 256MBytes of RAM, depending on the size of the application and the data needed. The best way to diagnose this issue is to watch the Task Manager (or it's equivalent if you are on Mac or Linux) while the program runs to see if you are actually running out of memory. If you are, there are several options. See the tutorial Managing Large Data Sets in LabVIEW.
If you are not running out of memory, you probably have a memory fragmentation issue. LabVIEW arrays must have contiguous memory space. If you try to allocate or grow an array, and there is not a large enough space in memory to hold the new array, you will get an out-of-memory error. The solutions are essentially the same as before. You will need to chunk your data and reduce your buffer sizes until it fits. You will need to look at the tradeoff in efficiency of buffer size reading from your DAQ card vs. how much memory you can use.
Please give us more details (buffer size, data type, acquisition speed) and post your code so we can help you better.