11-03-2015 04:58 PM
I want to exemplify the effects on differences on amplitude, frequency and phase between two sine waves.I have already used the sine function and works well without phase variations. I have tried to use the sine wave vi provided in the signal generation vi's, but I cannot figure out how to make it work. I tried to use a for loop to change the samples input, but does not work. I don't want to use the express vi's.
Does anyone out there have an idea to share? Thank in advance!!
Ricardo
Solved! Go to Solution.
11-04-2015 09:08 AM
Hello,
Use sine waveform.vi instead of sine wave.vi for your app.
God Bless!!!
11-04-2015 09:09 AM - edited 11-04-2015 09:11 AM
There's an example that ships with LabVIEW called "Function Generator with FM". That should help you generate a sine wave.
Is there a reason you don't want to use the express VI? There are inputs in to the express VI that will allow you to change the settings and it seems like that might be the best way to do what you're trying to do.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
11-04-2015 10:02 AM
Thank you for your reply James.
I have already seen the vi you mention on sine generation.
The problem I am tackling is focused on simulation of emergency power plants; At this stage, steady state simulation is carried out and I have to simulate the synchronization process between two voltage sources, for this I have to plot two sine waves where all its parameters can be adjusted on line. With this option, the operator can see the effects when the signal are not synchronized. I have built a vi with the sine function provided in the trigometric toolbox and it seems to work well; I think it is equivalent to use the express generator.
What troubles me i how I could use these functions. The help file is not clear to me, and that's why I built my own vi.
Thank you again for your time
Ricardo
11-04-2015 10:06 AM
Hello!
Thanks for your suggestion, but I have to generate at each instant of time a value of the sine function. I don't know how to use these vi's:
The help file is a bit cryptic to me!!!
Regards
Ricardo
11-04-2015 10:09 AM - edited 11-04-2015 10:15 AM
Did you look closely at the example I told you about above? You can find examples in LabVIEW by going to Help > Find Examples.
That example uses the Sine Waveform VI to generate sine waves. You only need to look at the bottom graph most likely. Look at the inputs to the function and you'll see how to make the sine waves that you want to make just like that VI.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'