LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW: Memory is full when creating arrays

Solved!
Go to solution

Turn the light bulb on and watch it run in execution highlighting mode so that you can see what function results in the out of memory problem.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 11 of 14
(1,189 Views)

@DailyDose wrote:

So I have used some of the suggestions (except for the line by line, haven't tried that yet) and have also added area under the curve calc.


Did you accidentally upload your old VI?  Because I do not see any changes.


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
Message 12 of 14
(1,170 Views)
Solution
Accepted by DailyDose

Your problem appears to be your chart.  It has to have values for all of the channels you configured it for in the history.  I deleted that, replaced it with a graph, and made some changes like Ben suggested (read 1 line at a time) and here is my final result.  It runs just fine on my machine.  For the single file, I am uses <200MB of memory.


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
Message 13 of 14
(1,162 Views)

Right-click your chart and UNCHECK Transpose array.

 

With the chart configure to transpose array and the history set for 60,000, LV thinks you are attempting to plot 12,000 plots with a history of 60,000 and that amounts "720,000,000" samples or "5,760,000,000" over 5Gigabytes.

 

 

Spoiler

When my son was young he was like many kids and would try things that I warned him not to do but he did it anyway. We now laugh looking back at those times because he would look at me after hurting himself and I would tell him;

 

Spoiler

 

Don't DO THAT!

 

Spoiler
 

 

 

 

Ben

 

Edit:

Tim beat me by 2 minutes!

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 14 of 14
(1,159 Views)