Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 

Error 2 : Memory full while executing data logging VI



I have a program that reads data contineously and simultaneously from 10 sensors. I am writing data from each sensor in individual text file simultaneously. For this I have created a SubVI (please see the pic attached) and I am calling this SubVI in main VI which do the data acquisition task (i am using PCI MIO 16E 1 DAQ Card ).


My problem is I am getting an error message ,


"Error 2: at Open/Create/Replace in Timed Data Logger(SubVI).vi


Possible Reasons:


LabView: Memory Full "


(Please see the pic, may be for some people its bit difficult to understand the message cause its in German)


Timed Data Logger(SubVI).vi is my SubVI used to log data in text file for specific time (please see the pic). I am getting this error message after e.g. 5 hours of data acquisition and logging. My program still runs without any problem but the only thing is that its not writting data into the file after few hours.


Can anyone help me regarding this.


thanks in advance.






Download All
0 Kudos
Message 1 of 4

I'm not seeing where you close your file reference.  That could be a possible major memory leak.

There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4

Hi Crossrulz,


In the above example (attached pics), I closed the file reference after reaching specific file size. In this case I have this error.

Then I changed my code and closed the file reference after writing data in it. In this case also I am having this error. After writting random amount of data my program stops writting data into file but runs without problem (i.e. data acquisition and display). When I stop my program manually I get this error.


Could you please suggest me how can I avoid this problem? any suggestions.






0 Kudos
Message 3 of 4

Have you already checked this out?


Why do I get "Memory is Full" Error in LabVIEW?


How Can I Optimize the Memory Use in My LabVIEW VI?


Profile Performance and Memory Window


0 Kudos
Message 4 of 4