LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Number of cycles using power spectrum for getting frequency

Hi,

I have a square wave that I am getting a frequency estimate from using power and frequency estimate.vi

I was wondering if it mattered how many cycles were inputted for the frequency estimate. Also, the signal may end in between cycles.

Thanks,
Jennifer
0 Kudos
Message 1 of 4
(2,917 Views)
Hi Jennifer,

Can you provide some details at what you are trying to do?

Thanks,

JLV
Message 2 of 4
(2,913 Views)
Sorry for the vague first post. The software was already written for the device and I am just trying to understand a few things in order to make some changes.

I am measuring the speed of a turning rotor using the square wave signal generated from a pattern on the turning rotor. I need to know the frequency of the square wave in order to determine the speed of the rotor. The pulse pattern is used in power spectrum and estimate frequency icons (appears to be similar to an example program for spectrum analyzer). The speed of the rotor is variable until it reaches steady state which can take minutes or hours. Speeds are not too high (Freq 1-100Hz). Right now the measurement is set up to sample a given number of points at a given scan rate. This means that the data most likely does not end exactly as a pulse cycle ends but somewhere in the middle of a cycle.

We are interested in seeing the transient change in speed from start-up to steady-state. How short of a sampling period (i.e. # of cycles can be put into the power spectrum and estimate frequency.vi's) would give reliable measurments. Right now I just scan for a reasonable time in order to make sure I get enough pulses in order to better estimate the frequency of the pulse signal.

In the future I will work with completing pulse width measurements which most likely would be the fastest I can complete a transient measurement although my data will have a bit more fluctuations. That's due to each pulse not being exactly the same width.
Hope that gives you a better idea what's going on here.
0 Kudos
Message 3 of 4
(2,904 Views)
Those are low frequencies for a spectrum analyzer. I have used R&S S.A. where the smallest frequecny was 10Hz.

When you mention "power spectrum", are you talking about a power meter or frequency counter to obtain a value for the frequency between 1 to 100 Hz?

As for the number of samples, you don't get any statistical significance below 3. But that does not mean that it should be your minimum value. There are other factors such as when do you need the measurement? For instance, if you must process measurements every 5 seconds and the frequency is 1 Hz, then 3 or 4 would be the maximum number of samples that you could process, unless you have a running average.

Do you have specs for the measurements that you have to take other than the frequency?

JLV
Message 4 of 4
(2,895 Views)