LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add two waveform different dt

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(5,662 Views)
Solution
Accepted by topic author Silversky

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...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(5,653 Views)

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.

0 Kudos
Message 3 of 4
(5,645 Views)

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.

0 Kudos
Message 4 of 4
(5,638 Views)