LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

When multipling two different "Triangle Waveform.vi"s

Solved!
Go to solution

When I multiply two "Triangle waveform.vi" with different amplitudes and frequencies,

the result is not linear but non-linear such as attached picture.

Is it a bug?

or 

Am I making a mathematical mistake?

20210820_091155.jpg    20210820_091219.jpg

0 Kudos
Message 1 of 5
(1,562 Views)
Solution
Accepted by topic author dream4me

Looks fine to me, why would you think it is a mistake or bug? try doing the same on a piece of paper.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 5
(1,533 Views)
Solution
Accepted by topic author dream4me

[Edit: oops, queued it up, walked away, and finished later.  Kinda redundant now.  Oh well, here it is anyway...]

 

Well....

 

y1 = a*x

y2 = b*x

 

so y1*y2 = a*b*(x^2)

 

...which explains the parabola shapes in your graph.  A linear shape would result from *adding* the two waveforms.

 

 

-Kevin P

 

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Message 3 of 5
(1,523 Views)
Solution
Accepted by topic author dream4me

As you said, I wrote it down on a piece of paper and then I had known the reason about that.

Thanks a lot.

0 Kudos
Message 4 of 5
(1,511 Views)

Oops, I didn't see that this had already results in responses and a "solution" ...  

 

You aren't making a mathematical "mistake", but do have a mathematical "misunderstanding".  Suppose I have a function f(x) = x, and I multiply this function by itself and call the result g(x).

 

g(x) = f(x) * f(x) = x * x = x².

 

You are multiplying two linear functions and are seeing piece-wise quadratic results, what you should have expected.

 

Bob Schor

0 Kudos
Message 5 of 5
(1,467 Views)