06-12-2012 09:57 AM
Hi, i'm trying to realizing the Sum(+) and Sub(-) function with waveforms input, i know the problem of the different dt and when the dt is the same the operations run smooth but i want to realize a thing like that Waveform Sum Figure 1 as you can see if two signal with different frequency are added each other the result looks like the Figure 1, but with the same dt the different frequency is not calculated and the sum show always like the two signals have the same frequency. How can i realize the sum like the one in the Figure 1? Thanks to all
Solved! Go to Solution.
06-12-2012 10:15 AM
Hi Silversky,
it seems you want to do something like this...
But the referenced figure never mentions signals with different dt!? You just have to create waveforms with same dt in the first place...
06-12-2012 11:24 AM
Hi GerdW thanks for reply, if i take my two signals and rebuild them with the same DT and after sum the signals i have weird result because the sum is like between signal of the same Frequency (like 10 Hz Sine + 10 Hz Triangle) and if i sum 20 Hz Sine with 200 Hz Triangle there isn't any difference on the plot it's the same of 20 Hz Sine with 20 Hz Triangle, this is no-sense. My signal generator sample the signal with this formula (Frequency * 20 = Sample Rate) it's obvious the the 20 Hz Sine have a 400 Hz Sampling Rate and 200 Hz Triangle have 4000 Hz Sampling Rate, if i change dt the frequency information is LOST.
06-12-2012 12:08 PM
I've found a solution, you were right GerdW i must resample the signal and after sum/sub them. Here the little code for doing this with continuous or triggered waveforms, work like a charm.