LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Formula Waveform VI

I am trying to use the formula waveform VI to generate this equation " y(t) = 7exp(-10t)sin(20*pi*t ) + 2;
 
I put the parameters as follow:
frequency = 10
amplitude = 7
formula = exp(-10*t)*sin(w*t) +2
 
The formula waveform VI  did not work correctly because of the formula;
 
However, the book I read puts the formula as " formula = exp(-10*t)*a*sin(w*t) +2" and it worked perfectly.
 
Can someone tell me why I have to put "a" in the formula above. because the only difference is the "a" in the formula expression.
 
Thank you.
 
0 Kudos
Message 1 of 3
(3,175 Views)
Hello,

If the only problem it's the "a" you can simply eliminate this,  putting this value equal to "one".

Or do you want other thing?


Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 3
(3,155 Views)
Hi okogidi,

when you look inside 'formula waveform' you will find 'f' and 'a' defined as parameter names for frequency and amplitude!
So when you wire those parameters you have to use those names in the formula...

Edited: And 'w' is already defined as '2*pi(1)*f' 🙂

Message Edited by GerdW on 03-12-2007 12:19 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(3,153 Views)