LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save large data

Hello,

I have a problem, i am pinging 5 diffrent ip's and saving the ping reaply, everyrhing is fine but in time and i am "recoding" this data for along time, my memory will run out....how can it be? i am saving the data to file not in arrays.
how can i save this large data without killing my computer?
attached my program.
0 Kudos
Message 1 of 4
(2,384 Views)
Hi Alvarion_…,
why do you open and close your file every time? Why don´t you use a while loop? You can change your code in that way, that you open all files before running the loop and close them afterwards. Use the "Flush File" function from time to time.
 
Hope it helps.
Mike
0 Kudos
Message 2 of 4
(2,378 Views)
Something else to check out:
 
Some of the VI's called in the for loop did not load for me, but make sure there are no references in there that are being created and not disposed before exiting. This can cause a memory leak and in a program like this will quickly eat all your memory.
 
Also, there is no need to use the local variable for the 3rd frame, just pass the wire data straight to the build array functions, those functions will not execute until the for loop completes or is stopped.
0 Kudos
Message 3 of 4
(2,370 Views)
I did the 2 things you said, and the performance is now great !
Thanks.
0 Kudos
Message 4 of 4
(2,363 Views)