LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error 2 File Open Labview Memory Full

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:

Tejaskumar Patel | (CLD)
0 Kudos
Message 1 of 10
(4,018 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 10
(4,002 Views)

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.

 

Certified-LabVIEW-Developer_rgb.jpg

Best Regards,
Prince Agarwal,
Certified LabVIEW Developer
0 Kudos
Message 3 of 10
(3,996 Views)

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

Tejaskumar Patel | (CLD)
0 Kudos
Message 4 of 10
(3,937 Views)

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.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(3,933 Views)

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

Tejaskumar Patel | (CLD)
0 Kudos
Message 6 of 10
(3,925 Views)

Hi Patel,

 

there are debugging options for EXEcutables as well.

And there is the DETT (Desktop Execution Trace Toolkit)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 10
(3,923 Views)

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

 

 

Tejaskumar Patel | (CLD)
0 Kudos
Message 8 of 10
(3,908 Views)

Hi Patel,

 

I will not run an unknown executable. I believe other people will hesitate too…

 

Please attach (relevant parts) of the source code!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 10
(3,906 Views)

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

 

Tejaskumar Patel | (CLD)
0 Kudos
Message 10 of 10
(3,483 Views)