10-25-2019 04:29 AM
OK thanks again here's my updated subVI, you can compare it with the previous one i posted and see how i changed it.
I have another question, is it possible to tell the program that if a certain condition is met to delete the values of that array before doing any other operation in order to save memory?
10-25-2019 04:41 AM
Hi Bonifacio,
@BonifacioLupo wrote:
I have another question, is it possible to tell the program that if a certain condition is met to delete the values of that array before doing any other operation in order to save memory?
Yes, sure.
IF "certain condition" THEN do something ENDIF
10-25-2019 04:44 AM
Yes i'm familiar with IF/OR conditions, but my question was: is there a block or some way to eliminate this redundant data in order to save memory?
10-25-2019 04:51 AM
Hi Bonifacio,
@BonifacioLupo wrote:
my question was: is there a block or some way to eliminate this redundant data in order to save memory?
There is a palette dedicated to array operations. There is ArraySubset or DeleteFromArray…
10-25-2019 04:55 AM
But i don't think that with this palettes i can save memory space, because they have as an output with also the deleted portion option so it's like if they are still in the memory. Or am i wrong?
10-25-2019 05:18 AM
Hi Bonifacio,
@BonifacioLupo wrote:
because they have as an output with also the deleted portion option so it's like if they are still in the memory. Or am i wrong?
Do you want to outsmart the LabVIEW compiler?
When the output is not used then the compiler will (most probably) not allocate memory for unused data…
The question is: do you need to allocate memory at the start when you don't want to use that data?
10-25-2019 05:30 AM
Yes, to answer your question i want to deal a certain operation on a filtered waveform, but if i cannot compile that operation in a certain amount of iterations then i want to to another operation on the same waveform but not filtered, i put a case structure to do this but it gives me a memory problem. Before this i used the filtered waveforms for both operations but it gave me some uncorrect results so i have to deal with the unfiltered waveform for the second operation inside the case structure.
Here's the VI