LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Search 1D Array Function

Solved!
Go to solution

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?

0 Kudos
Message 11 of 17
(997 Views)

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
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 17
(990 Views)

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?

0 Kudos
Message 13 of 17
(987 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 17
(983 Views)

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?

0 Kudos
Message 15 of 17
(976 Views)

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?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(969 Views)

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

0 Kudos
Message 17 of 17
(966 Views)