LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running out of memory

Hello, I'm having some trouble when attempting to write my measurements to file. I am using a myRIO 1900 and 32Bit Labview from 2019 in order to collect data from a test rig. I'm able to collect some measurements for about the first 2minutes of starting the VI but then when i try to save the program crashes. Right now I'm saving the files as LVM but when i tried using TDMS i got the error 2(Hex 0x2) memory is full. When running LVM i don't get any error messages but given that shorter measurements work but not longer i suspect it has to do with the saving and clearing.

Many thanks

Download All
0 Kudos
Message 1 of 4
(533 Views)

You probably only need to tweak/fix your write loop. 

Instead of gathering all data and try to write it at once, Open the file ref at measurement start (remove the express VI) and add to file. Close the ref afterwards.

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 4
(484 Views)

Thank you for replying. I'm very new at using Labview and i don't quite understand what you meant by opening a file ref instead of having the write to measurement express VI. Should i use a Open FPGA VI reference? and would i have to create a file to be changed for every measurment. Sorry for all the stupic questions but all info on saving data in Labview uses the write to measurement file.

0 Kudos
Message 3 of 4
(464 Views)

Two of your While loops (the one labeled "Variable creation" and the one that monitors the Stop variable) both have no timing on them so they are constantly updating.  I recommend putting a small 100 ms delay in those loops.  I don't know if it will fix your problem as I have very little RIO knowledge, but I suspect backing off on reads/writes to shared variables could help.

0 Kudos
Message 4 of 4
(433 Views)