LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

square wave

Hi. Im new to Labview. I have been tasked to construct a square wave by summing a fundamental sinusoidal frequency and five harmonics. Fundamental frequency 800Hz with an amplitude of 9V. The frequencies and amplitudes must be adjustable All frequencies and amplitudes to be listed. Please help!

0 Kudos
Message 1 of 3
(2,536 Views)

Search for Sine Wfm on the palettes.  That will give you the function to generate a sine way of your desired frequency.

 

Add the results of those sinewaves together.

 

Beyond that, I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
LabVIEW Introduction Course - Six Hours

0 Kudos
Message 2 of 3
(2,522 Views)

Hi gbroder1,

What you described fits the description of Fourier Series which is a theory that states that every type waveform can be produced by combining a number of sinusoidal signals. The maths behind it is explained here:
http://mathworld.wolfram.com/FourierSeries.html

As RevensFan suggested you will have to use SineWfm and add the waveforms up, but how you write up the algorithm for calculating the coefficients is up to you.

Kind Regards,

Applications Engineer
National Instruments UK & Ireland

0 Kudos
Message 3 of 3
(2,478 Views)