LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sum multiple waveforms created inside for-loop

Solved!
Go to solution

Hi,

 

I'm trying to visualize Gibb's phenomenon by adding multiple sine waves. The issue I'm having is that I can't figure out how to add the sine waves created in the loop. I have attached a picture of the basic structure to my project below. I have tried to simply use "add" with a feedback loop but it seems like my knowledge in programming doesn't apply here. Any suggestions is appreciated. Thanks!

gibbs.png0

0 Kudos
Message 1 of 3
(3,907 Views)
Solution
Accepted by topic author JerryLui

Something like this?

1. Make sure you "reset" the waveform generation with each iteration

2. With waveforms, you have to make sure the sampling rate is the same.  This can be an issue with the first iteration.  So add in a check to just use the first waveform on the first iteration.

 


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 2 of 3
(3,898 Views)

Thank you very much!

0 Kudos
Message 3 of 3
(3,892 Views)