LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

frequency to RPM

Solved!
Go to solution

I need a RPM measurement of a BLDC. I have Hall input signals. I use a cRIO and I program on the FPGA.

So I measure the frequency of one hall input signal using a single timed loop on the FPGA.

In another loop I calculate the rpm from the frequency. This according to the number of poles.

 

When the motor is running, I can see the number of ticks changing, but the calculated RPM is not changing, it's fixed at 5299,41 RPM.

I hope someone can help me.

 

Download All
0 Kudos
Message 1 of 3
(3,252 Views)
Solution
Accepted by topic author gihlutax

What is the settings for your Fixed Point data type?  I think you are just hitting the limits of the fixed point settings.  You might need to convert it to a floating point and order to do all of the math.


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
0 Kudos
Message 2 of 3
(3,243 Views)

It was indeed the fxp configuration of on of the data operations that caused the problem. Thank you!

0 Kudos
Message 3 of 3
(3,147 Views)