LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am wondering if there is some memory limit that labview has.

Hello,
I am currently using labview to capture multiple images from a camera.  The program acts like a line scanner for small bores.  My problem is that we just got a new camera that has approximately 4 times the resolution of the first camera and now we are running out of memory.  After scanning about 3/4 of what we need labview says there is not enough memory to copy more images.  We have 2 Gigs of RAM and if I look at the available physical memory under task manager while running my program there is never less that .5 Gigs of ram available.  If there is any limitations on the amount of memory labview can handle please let me know.  Thank you very much.
0 Kudos
Message 1 of 5
(3,009 Views)
There's a distinction between available total memory and the largest contiguous memory block available. You're probably running into an issue with not having a large enough contiguous memory block that LabVIEW can reserve for an image. You may be creating arrays here and there, and that's chopping up memory. Take a look at your code with the profile tools (assuming you have the Professional edition) to see where you're allocating memory. You can call the "Request Deallocation" function, but that should generally be a later resort.
0 Kudos
Message 2 of 5
(2,997 Views)

Hi bhuff,

One of the main reasons for having memory issues is array size. I would suggest going through the following KnowledgeBase and the different links within it. This may also help. One more important question which may help is the operating system and the version of LabVIEW you are using. Hope this helps.

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

hi all,

@Nitin: Your link doesnt work! page not found

I have the same Problem of bad using the physical memory. I want to convert a large tdms file to an ascii. While reading the TDMS-properties and converting the binäry file to an ascii file using a express vi the momenry grows to 2GB. Only reopening the programm make the momery going down!  How can i handle the convertion by flushing the momery after a block is writen to the ascii file??? maybe i should avoid the express vi??

I m  using a 1,7 Celeron with 500 MB Ram :-), but saving the TDMS files with 1 MSample/s does work fine!!! It uses less memory!

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

Hi All

Sorry about that. They were pointing to the internal database.I've linked the below post properly. It should work now.

One of the main reasons for having memory issues is array size. I would suggest going through the following KnowledgeBase and the different links within it. This may also help. One more important question which may help is the operating system and the version of LabVIEW you are using. Hope this helps.

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