LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Append 1D array in a loop

Solved!
Go to solution

Hello, I want plot signal energy over time - append a 1D array with calculated signal energy each for loop iteration. The snippet I attached is a simpler version of a bigger project, where on Input, instead of simulated signal I have an accelerometer signal. I am struggling with this problem quite some time. 😞

 

I will appreciate any advice

array_appending.png

0 Kudos
Message 1 of 4
(2,436 Views)

So you want 'i' copies of the sum of the squared values of the last column? Because that's what you're coded.

 

Guessing from your attempty and description, you want to use that now unconnected array output from the for loop and connect it to a Build array. This array should be connected to a Shift register on the outer While loop.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 2 of 4
(2,434 Views)
Solution
Accepted by topic author LaBoris

snip.png

 

This will work, but you will run out of memory eventually. Take some the tutorials listed at the top of the forums.

 

mcduff

Message 3 of 4
(2,431 Views)

Thanks mcduff, that worked for me. I will go through the tutorials as you recommended.

0 Kudos
Message 4 of 4
(2,386 Views)