LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

out of memory

Hello All,

I am developing a medium sized application consisting of 2 windows, one for graphing and the other for file replay. 1 file of typically 35MB can load ok and a second also loads ok, but when a third is loaded the machine will often lock up, get laggy. I noticed laptops running the code will lockup with 2 files loaded.

 

I used Task Manager to look at what going on and noticed the memory is almost full when the code runs. The CPU usage is acceptable, typically 60% when loading and 10% when the code is idle.

 

 

PC is                    intel i5-4440 3.1GHz

OS                        windows 8.1 64 bit

memory              8GB ram

 

 

Next is a list of how Task Manager shows the memory filling up:

 

available                                                       7.9 GB

 

Only Windows running                            1.8 GB

Labview IDE loaded                                2.0 GB

Labview Project loaded                          2.1 GB

Software loaded                                       2.2 GB

Software started (idle)                              3.2 GB

Software with 2 x 35MB files loaded     6.6 GB

 

I appears I have used up all of the memory, I notice a big memory hit when I start the code, and then loading files causes memory usage to escalate away. Ive already looked at trying to make my code more memory efficient but timing showed its already ok. I'd appreciate some advice, first thoughts are... will a recompile flush saved data? I pinpointed the 5 vis that cause the 3.2 to 6.6 GB jump just after loading the files (would dynamic loading help?). I noticed that once a vi executes its memory usage sits theres consuming space which isnt recovered until labview is closed.

 

Should I try using 'Dynamically Loading vis' as I understand dynamic execution loads the vi + memory space, does the work then drops itself and memory used from available memory freeing it up for other stuff. If dynamic loading is the solution are there any good 'how to dynamic load vis' on the net, please?

 

I am not sure if ive understood this problem correctly if not please correct me.

 

Advice appreciated

 

Regards

Chris

 

 

0 Kudos
Message 1 of 2
(2,496 Views)

Duplicate thread


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 2
(2,471 Views)