From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 2 : Memory full while executing data logging VI

Hello,

 

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.

 

 

 

regards,

swap

Download All
0 Kudos
Message 1 of 4
(4,172 Views)

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


GCentral
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
(4,156 Views)

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.

 

 

 

regards,

swap

0 Kudos
Message 3 of 4
(4,137 Views)

Have you already checked this out?

 

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

http://digital.ni.com/public.nsf/allkb/C3C516C11184AF3F862571B5006B46E1?OpenDocument

 

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

http://digital.ni.com/public.nsf/allkb/771AC793114A5CB986256CAB00079F57

 

Profile Performance and Memory Window

http://zone.ni.com/reference/en-XX/help/371361D-01/lvdialog/profile/

 

0 Kudos
Message 4 of 4
(4,055 Views)