01-15-2009 02:12 PM
hey,
it didn't leave me to rest, so I went back to the lab and here is the VI
01-15-2009 03:03 PM
Funny I can't edit my post...
Nevertheless: I have tried to provoke the error on my Laptop, have failed though. So it seems to be a Computer-related problem...
01-16-2009 04:12 AM
Greg,
It is difficult to send you a screenshot of my code since it is quite large and consists of many SubVI-s. However, I wrote a new code which contains at least a part of the problem. Just run the test.vi with following parameters, Greylevel=150 and #CPU=2. I am using a greylevel image of tif format with the size of 50 MB. Just follow the amount of memory in use before running the program and after the stop button is pushed. Although I am releasing the image, after pushing the stop button, not all memory is released. In fact in my case, according to windows task manager, 300 MB are not released (this is 6 times the size of the image)! If I run this code with only one CPU core, this number is 200 MB (4 times the image size).
Do you have any advice?
Ali
01-16-2009 05:01 PM
01-19-2009 03:13 AM
Hey,
here's my VI attached (LAbView 8.5.1) Still have the problem an my Lab-Computer
01-19-2009 03:40 AM
Greg,
Let me see if I understand you right. Your advice is if memory is an issue then I should not use the ImageToArray function. But rather work with lines of image, one at a time.
Ali
01-19-2009 12:59 PM
Ali Ghaderi -
My advice would be to use ImageToArray, but after you're done using it don't wire it to an indicator or anything. That should let LabVIEW know that it can clean it up and free the memory.
Greg Stoll
Vision R&D
National Instruments