LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a sine wave with a "low tooth" (top dead center or 1/rev) cycle

Greetings all, I'm looking for some direction in trying to create a sinusoidal waveform that has a repeating "low tooth" or 20% decrease in peak amplitude every so many cycles. I've tried several different waveform generation VI's, but I'm not having much luck in creating the sample buffer (I assumed this was the best way to go) and writing it to a display device (eventually to an analog out point).  I'm new to Labview but I'm not looking for anyone to do the work for me, just looking for a helpful hint or two. The waveform frequency and amplitude will be controlled by a user interface, with the ability to inject noise into the final waveform and possibly some amplitude modulation of the signal.
 
Any ideas or general thoughts? Thank you in advance for any information you can offer.
 
 
Mark
0 Kudos
Message 1 of 2
(2,311 Views)
Mark,

How about generating a square wave with the same frequency and number of samples as the sine wave (and phase synchronized) and set the duty cycle to 1/n where n is the number of cycles per rev? When the square wave is high, multiply the sine wave by 0.8; when low multiply by 1.

Lynn
0 Kudos
Message 2 of 2
(2,306 Views)