07-12-2010 06:24 AM
how can i generate only one period of sine wave ?
07-12-2010 07:15 AM
You can use sine wave.vi or simulate signal vi
07-12-2010 07:54 AM
07-12-2010 11:03 AM
Just specifying the frequency does not allow you to generate a single period. Just look what happens if you ask for a 2Hz signal. You need also specify the number of samples and sample rate.
07-12-2010 11:20 AM - edited 07-12-2010 11:24 AM
You can manipulate the sampling info with the desired frequency in several ways to keep just 1 period. See pic for a simple example.
EDIT: You have to have the sampling frequency (Fs) equal to the number of samples (#s)
... Nevermind, tbob beat me to it.
07-12-2010 11:23 AM
Dennis is correct. The reason Muks example seemed to work is because the default sample rate is 1000 and he used a frequency of 1Hz. To get one cycle at any frequency, multiply the frequency by 1000 and set the sample rate to this number. There is a cluster on the bottom of the Sine Wave funtion that allows one to set this parameter.
04-29-2013 02:41 PM
Hi,
I'm using this method that you discribe for generating a sine wave with one cycle.
Then I send this sine pulse to my soundcard. Works perfectly for a low frequency.
But I need a frequency of 10kHz and then this VI doesn't work.
But normally my soundcard works till 30 a 35kHz (For example when I make a continous sine wave)
Does anyone has a solution for this?
Thanks!
jelle
04-29-2013 03:23 PM - edited 04-29-2013 03:26 PM
04-30-2013 02:07 AM
Hello,
That's no problem. I don't have to hear it.
I send it with my soundcard to a pc oscilloscope an i just want to see it on my pc oscilloscope.
Problem is that the VI blocks if I use high frequencies...
Any labview solutions?
kind regards
04-30-2013 07:52 AM