11-06-2008 02:07 PM
Dear Sir,
Could you teach me how I can generate the combination of two sine waves: A1*sin(w1t) + A2*sin(w2t) ?
Thank you.
Soobum Lee
11-07-2008 10:06 AM - edited 11-07-2008 10:09 AM
Hi Soobum,
Provided you are using LabVIEW, I would use the Multitone Generator.vi:
This will take an array of the frequencies, amplitudes, and phases that you want to use and can easily be scaled to include more than two sine waves. Let me know if you have any questions, thanks for posting!
-John
11-10-2008 11:49 PM
I found multitone generator and tried as shown.
All I need to set is the amplitudes and the frequencies of two sine waves.
But when I run this it gives an error message saying:
Error-20002 occurred at "NI_MAPro.lvlib:m_MultitoneParamsCheck.vi" when called from "NI_MAPro.lvlib:Multitone Generator.vi:3"
Possible reason(s):
Analysis: The input sequences must be the same size.
How can I resolve this?
Thank you.
Soobum Lee
11-11-2008 08:37 AM
11-11-2008 01:40 PM
I added two more element for amplitude and frequency and it works. Thank you.
11-11-2008 02:19 PM
Another option would be to wire the phase input with a constant array of zeroes. The array should be the same size as your other two inputs to avoid the error you initially received.
-John