LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Not enough memory Problem

Solved!
Go to solution

Hello gents, as I am new to Labview I wanna ask to someone more expert how can i improve my VI (attached here). I can run my VI one time straight without any problem but the second time i run my VI, it gives me a not enough memory problem (I know i have a lot of waveforms but i cannot avoid that), any advice on how to solve this??

 

Thank you in advance for any reply.

0 Kudos
Message 1 of 13
(3,809 Views)

So looking at your VI, I'm going to take a brief shot in the dark and say that your problem is related to uninitialized Shift Registers.

When you don't connect a value to the left (outside edge) of the Shift Register, then it remembers the value from the previous run and uses that for its starting value.

In your case, that may be causing your problem (I certainly expect it's not what you want, it looks like it will produce invalid results).

 

You can correct this by connecting a valid initial value to the left outside edge of the Shift Registers (like 0).


GCentral
Message 2 of 13
(3,781 Views)

The first main issue I see is you need to initialize your shift registers.  Leaving them uninitialized and they will retain the last value of the previous run.  Likely not your memory issue, but still something that needs corrected.


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 3 of 13
(3,769 Views)

Which function gives you out of memory? (Channel read?)

 

You can significantly improve your memory footprint by eliminating all express VIs and dynamic data. Seems like very light processing of your waveforms that could be done much simpler. How many points are in your graphs? What is dt?

0 Kudos
Message 4 of 13
(3,768 Views)

I deal with waveforms of millions of samples. I cannot avoid them. These waveforms come from high resolution measurements. 

So I can work just with dynamic data types or with arrays of waveforms.

dt is the time step associated to the running waveform.

0 Kudos
Message 5 of 13
(3,742 Views)

I'm going to guess that altenbach knows what dt means, and was instead asking for its value in your typical application... 


GCentral
Message 6 of 13
(3,739 Views)

My dt value is 10 ns. Thanks.

0 Kudos
Message 7 of 13
(3,686 Views)

Hello everybody,

this is my problem: in the attached VI everything works fine only if the Highlight Execution is activated. As soon as I try to run this VI without it, the usual error occurs: not enough memory.

Sequence and timing are my attempts to improve the VI in order to solve the problem, but it seems strange to me that it works only with Highlight Execution smoothly.

It seems that with the Highlight Ex. ON the VI has all the time needed to do its task, is this a timing problem perhaps or too many processes in parallel working?

I know that you can't see my subVIs, but the problem seems to be on the palette named "Extract Portion of Signal4".

 

Thanks for the help, Edmond.

0 Kudos
Message 8 of 13
(3,676 Views)
Solution
Accepted by topic author EdmondDantes

It's not immediately obvious to me why the Extract Portion of Signal Express Node would be causing you problems, but you could try replacing it with the Get Waveform Subset VI that is used inside of the Express Node.

 

That will also prevent you needing to convert from Dynamic Data Type (DDT) back to waveform immediately after. Perhaps some of these conversions back and forth and requiring copies of the memory block.

 

If you want to see what an Express Node is doing, you can right click on it and choose "Open Front Panel". This will (via a couple of prompts) convert it to a standard subVI, which you can then open and inspect.


GCentral
Message 9 of 13
(3,646 Views)

With the Get Waveform Subset VI instead of the Extract Portion of Signal Express Node, all the memory troubles are solved. Thank you very much!

0 Kudos
Message 10 of 13
(3,620 Views)