ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add N Waveforms Together

Solved!
Go to solution

I would like to take an unknown number of waveforms inside an array and add each signal together so that I end up with one waveform which is the sum of all the Y data of the wave forms. dt will be the same for all waveforms.

 

I have been able to get this to work by using the Add function with a fixed number of waveform array elements (such as I have attached), but I have not been able to figure out how to do it if I do not know how many elements are in the array. 

 

I have tried using a for loop and a shift register but it does not work the same way.

 

Any suggestions would be greatly appreciated.

 

Thank you

Download All
0 Kudos
Message 1 of 2
(3,344 Views)
Solution
Accepted by topic author debugg

Apparently I was not being explicit enough when I initialized the shift register. This is a working version using a shift register

Download All
0 Kudos
Message 2 of 2
(3,334 Views)