LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate a Swept Sine Wave

A previous thread was posted on this topic at http://forums.ni.com/ni/board/message?board.id=170&message.id=40467&requireLogin=False

however, the solution included an example: Creating a Swept Sine Wave in LabVIEW
who's link is broken, and that is the example code that I need.

I am looking for a means of generating a waveform of a linearly swept sine wave (and other wave shapes as well) where I can control the amplitude and high/low frequencies.

Thanks
0 Kudos
Message 1 of 20
(22,198 Views)
Hi S,

I have managed to locate an example which will generate a swept sine wave. I have included it as a .llb file saved for version 7.1 of LabVIEW. I did not write this example, but I ran it and everything looked pretty good.

Best of luck with the rest of your application.

Regards,

Evan R.
Applications Engineer
National Instruments
http://www.ni.com/support



@smwtcool wrote:
A previous thread was posted on this topic at http://forums.ni.com/ni/board/message?board.id=170&message.id=40467&requireLogin=False

however, the solution included an example: Creating a Swept Sine Wave in LabVIEW
who's link is broken, and that is the example code that I need.

I am looking for a means of generating a waveform of a linearly swept sine wave (and other wave shapes as well) where I can control the amplitude and high/low frequencies.

Thanks


Message 2 of 20
(22,191 Views)


@smwtcool wrote:
A previous thread was posted on this topic at http://forums.ni.com/ni/board/message?board.id=170&message.id=40467&requireLogin=False

however, the solution included an example: Creating a Swept Sine Wave in LabVIEW
who's link is broken, and that is the example code that I need.

I am looking for a means of generating a waveform of a linearly swept sine wave (and other wave shapes as well) where I can control the amplitude and high/low frequencies.

Thanks


Hi Again S,

I have since discovered that the equation used in the previous example is not fully correct. I am working on updating that exmaple of the swept sine to include the proper equation. I am writing an example to utilize the equation which can be found at:

http://www.reed-electronics.com/tmworld/article/CA187440.html

Stay tuned!

Evan R.
Applications Engineer
National Instruments
http://www.ni.com/support
Message 3 of 20
(22,190 Views)
Yes I just realized that the equation was incorrect as well. I am also using the analytical formula to create the waveform, but I decided to do it from scratch. However, If you feel inclined to finish your example I would like to see it still.

Thanks
0 Kudos
Message 4 of 20
(22,188 Views)
Hi S,

Here is the example code if you are still interested.

Best Regards,

Evan R.
Applications Engineer
National Instruments
http://www.ni.com/support
0 Kudos
Message 5 of 20
(22,170 Views)
HI expert..
 
i am new in a Labview programming and attend some conference and seminar from Labview..
i am trying to simulate a Sine wave,saw tooth wave,triangle wave,square wave using equation same like "simulate signal package in labview, because  but i need to configure all the variable data inside the equation. .. like  x= a sin 2*pi*f*t or x= a sin w*t..
 
i am using labview 7.0..
can anyone help me please....
0 Kudos
Message 6 of 20
(21,951 Views)

Hi Shid,

I do not have LV 7.0, but an example program that I would look into is the Function Waveform Generation.vi example.  I found it in the example finder for LV 8.2.  If there is a similar function in LV7.0 I think that is your best solution.

Brian K.
0 Kudos
Message 7 of 20
(21,928 Views)
This waveform calculation still has 'artifacts'. If you chose a low frequency transition - say 5 to 6Hz just so that your monitor has enough resolutino to see the time domain output clearly - then you will be able to see several DC jumps in the sinewave.

This is sent to the soundcard too and i have been chasing my tail all morning tryin to diagnose a problem with my sound card. . .


0 Kudos
Message 8 of 20
(21,494 Views)
Would it be possible for you to put up screen shots of the DC jumps?
 
 
Mehak D.
0 Kudos
Message 9 of 20
(21,460 Views)
Hi,

I changed the algorithms given by Timed Sweep 2.vi (it created me steps in the sine). Now you can chose between linear, quadratic and logarithmic sweep. The algorithm is based on the Matlab Toolbox Chirp (see http://www.mathworks.com/access/helpdesk_r13/help/toolbox/dspblks/chirp.html )
0 Kudos
Message 10 of 20
(21,378 Views)