LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure time of 5 pulses

Solved!
Go to solution
I need to measure the speed of a motor which has an eccentric load so the instantaneous speed of the motor looks like a sine wave. I have 5 hall pulses per one revolution so I want to measure the time of 5 hall pulses and convert this to a frequency to basically filter out the speed fluctuations. The frequency range of the hall pulses to be measured is from 4Hz to 50Hz. I have two motors that must be measured this way and two counters available on a 9172 with a 9411 module. I have tried most of the shipped examples but I have had no sucess trying to filter out the speed fluctuations. I am using LabView 2009.
0 Kudos
Message 1 of 8
(3,516 Views)

Hi LabLung,

   As you are saying that there will be 5 hall pulses per revolution.So instead of calculating the pulse time,it is better to calculate the no. of pulses in one minute and divide the value with five and you will be getting the value in rpm.

 

  If you got the some other way,please post to the forum.

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


0 Kudos
Message 2 of 8
(3,509 Views)

I have to report the speed in Hz and at a much faster rate than 1 minute.

Ideally reporting the speed for one complete revolution at a time would solve my issues.

 

0 Kudos
Message 3 of 8
(3,488 Views)

Use a running or moving average of the pulse periods.  (I am assuming that you are able to measure the time from one Hall pulse to the next for all the pulses). Since you want the speed based on five consecutive pulses, you really do not need the average, just the sum of the times.  See the attached example in which the pulse frequencies are random but in the 4 to 50 Hz range you expect.  Notice that the speeds are smoother than the pulse times.

 

Lynn 

0 Kudos
Message 4 of 8
(3,483 Views)

Hello,

 

Are you simply wanting the average every 5 pulses? You can do this by using a buffered digital period measurement and dividing the total time by 5. See the attached VI (NI-DAQmx Required).

 

With warm regards,

David D.
0 Kudos
Message 5 of 8
(3,465 Views)

I can't just average 5 pulses because the pulses the vi samples may just happen to be 2 fast ones from one revolution and 2 fast ones from the next revolution then 1 fast one from the third revolution, then it reports a false overspeed condition.

I have several inerations of averaging methods and none report correctly.

The time to complete one revolution is very consistant but the instantaneious speed is not so I need to measure the time of any 5 consecutive pulses to eliminate the speed variations.

0 Kudos
Message 6 of 8
(3,457 Views)
Did you take a look at the VI I attached? It will return the period of the last pulse. Therefore, you can measure 5 consectutive pulses and average those which sounds like what you are looking for.
With warm regards,

David D.
0 Kudos
Message 7 of 8
(3,452 Views)
Solution
Accepted by topic author LabLung

This will work if it doesn't skip any pulses in the train. I ran the vi and the periods look correct for 5 consecutive pulses. 

 

Thanks

Brian.

0 Kudos
Message 8 of 8
(3,440 Views)