LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure frequencies of a interval sine wave.

If you don't understand what a Spectrum is, how to do frequency analysis, filters, etc., then you shouldn't be trying to program them in LabVIEW.  You need to "know what you are doing" before you try to actually do it.

 

If this is Homework, you have a lot of work to do first.  If this is something an engineering colleague asked you to do, consult her and get her to tell you about signal analysis.

 

Bob Schor

0 Kudos
Message 11 of 13
(873 Views)

There definately seems to be a misunderstanding of what the inputs are and what they are doing.

 

For the moving RMS, you want a moving window of points that an RMS is computed for.  What you have currently is creating a window size of the entire waveform.  So in the end you just have a cumulative RMS for the waveform.  That is not what we are after.  For your waveform, the default window size of 100 points seems to work well.  So let's just use that.  Then you should have something like this.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 12 of 13
(866 Views)

Is the phase and frequency of the high frequency signal invariant across the squares or is it variable for each new square pulse? (i.e. is it derived from a continuous source that is modulated with the square pulse?).

 

Is the high frequency sinusooidal? Of course the square pulses will have harmonics, but the fundamental frequency should be dominant.

 

Another problem is that you have fractional cycles for the square wave (4.5 cycles over the sampling inteval, so you should use some windowing or select/trim the data better. Currently, the frequency falls right between two frequency bins in the transform and you get significant leakage.

 

0 Kudos
Message 13 of 13
(858 Views)