LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory is full

Hey everybody!
I am trying to take a buch of photos in sequence, with  a short pause between each. I then am sending the picture files, right after they are taken, to another computer via TCP connection (so it goes, Take picture, send picture, take picture, send picture, etc). There is a labview program on the recieving computer that creates a new file for each pic and saves them all together in a folder. This recieving program is also doing some other complex stuff that involves controlling moving stages. The problem I am having is that the recieving program gets mad when I try to send the photos, and it says that labview memory is full. This makes all the photo files empty. The rest of the program is fine, and if I run the same block diagram structure as a different VI, separate from the stage motion control program, it transfers multiple photos no problem. How can I save memory??

I read some ideas on another post:
"For example, you should avoid resize operations on large arrays (e.g. built array, insert into array, delete from array). Try to avoid extra data copies in memory by coding in such a way that memory buffers can be re-used. Do operations "in place" whenever possible. Also local variables cause memory copies (use shift registers instead to hold your data). Don't use indicators for large intermediary results, they again have their own data copy (Some people use those for the sole purpose of creating local variables, a big drain on memory!)."

As far as I know (could be wrong), I am not manipulating arrays. I know I don't have any local variables, and I don't know what "in place" operations are. I would appreciate tips on how to stop labview from making extra data copies, as I think that might be a problem. But if anyone sees a different solution, that would be great too. If you have even bothered to read this far, karma will reward your patience Smiley Wink Thank you so much!!!

0 Kudos
Message 1 of 2
(2,350 Views)
Hi ekarl,
do you save the photos direct after receiving them? Do you close the file references for all opened files? Is it possible for you to upload the receiving code or a picture of it?

Mike
0 Kudos
Message 2 of 2
(2,318 Views)