LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 6 File Open

Hi,

I am using this write to spreadsheet file.vi. I am continuously writing to a file every 3 minutes. I am using this VI 30 or more times in my application to log temperatures from my ovens. What I wanted to ask is, does the array in the write to spreedsheet file.vi get bigger? I looked at it and it doesn't seem that it's keeping the old values. The reason why I am asking is, I am getting an error 6 open file. My path has no \r,\t or \n at the end, I looked into that. The only thing that I can think of his this array could get too big and it's causing my application to crash. I've been getting this error for the past 2 days and it always seems to happen after 11 to 13 hours after I started my application. If the array is getting bigger, how
can I prevent this from happening. Also, my total memory keeps going up while my application is running. In aprox. 8 hours my memory goes up by 150 000. I have the limit set to 4G, but why is my memory keep growing.

Thanks in advance
0 Kudos
Message 1 of 3
(2,951 Views)
Are you re-initializing the array in your vi every time it executes? If not, the array will keep on growing. When you open the file for writing, what mode are you using, append or replace? If append, the file will continue growing, if replace the file will only hold the latest data. You have to match what you are doing with the array with how you open the file. It might be best to open the file for append and write the latest data only, initializing your array at each loop so that it holds only the latest data.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 3
(2,951 Views)
I am appending my file. I need to do this, because I am opening the file in a graph/chart to plot temp over time. For the initializing of the array, I am assuming that this is done automatically but I could be wrong. I have included the VI that I am using.

Thanks
0 Kudos
Message 3 of 3
(2,951 Views)