From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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!
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