01-05-2017 03:30 AM
Hello all
I am having some truble with saving data. I am getting Error 2 File Open+.vi, LabVIEW Memory Full. Please check attached image.
Can some one guide me why I am getting such errror,
System Info
Windows 7 64bit
8GB Ram
i5 Processor.
Labview 32 Bit
Thanks AND LOOKING FORWARD TO YOUR VALUABLE REPLY:
01-05-2017 04:03 AM - edited 01-05-2017 04:04 AM
Hi Tejaskumar,
all I can say from the information you provided is: LabVIEW complains about lack of memory!
Did you check the memory consumption of your LabVIEW task?
If you want to have more detailed analysis of the problem you should attach your VI(s) and maybe also the needed external data files!
01-05-2017 04:08 AM
Hi TejaskumarPatel,
I think you have a very big operation going on in your vi. May be due to large number of elements in the array or anything else.
If you can post your code then may be we can provide you better solution.
01-09-2017 02:44 AM
Thank you all for your reply.
Yes we are having relatively large data processing going on. What we do is, we are opening a txt file write data and close. Reason to do that is, if user want to analyse data in between he can open file and check if measurement going well.
Today only we got that error after running 16 hours experiment. Normally when .Exe runs it takes up to 500 MB on RAM but when we go error at that time it was 860 MB on RAM. Do you think that might be an issue.
BR
Tejas
01-09-2017 03:00 AM
Hi Patel,
Normally when .Exe runs it takes up to 500 MB on RAM but when we go error at that time it was 860 MB on RAM. Do you think that might be an issue.
Atleast it's a symptom: using a lot of memory might lead to other problems like being unable to open/edit files…
Which part of your code does need this amount of memory? Why does memory consumption rise to 860MB when it usually only needs 500MB?
(You should always call a Close function when there is an Open operation.)
01-09-2017 03:23 AM
Hi,
As you can see in VI, we are closing file with file reference. Can you suggest me how can I perform memory performance function during running EXE.
BR
Tejas
01-09-2017 03:29 AM
01-09-2017 05:40 AM - last edited on 11-03-2017 08:55 AM by Kristi_Martinez
Hello All, Thanks for your input.
We have some LabVIEW class where we are using kernel32.dll to write data
Open file Close file.
Interesting fact.
If I run test vi in development system, my memory is stable. that’s GOOD
But when I create standalone application and run that .exe its gradually increasing memory.
To run this exe simply run exe stop it using FP clt. and selcet any file path and run again and check your memory
BR
01-09-2017 05:43 AM
11-03-2017 08:38 AM
I have wrote message to moderator to remove my attachment. Anyway Memory full issue solved. it was due to VI is creating continuous new Refnum. Which leads to memory increate over time.
Reagrds