LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi Guys I want to measure the rpm for dc motors?

Hi

could you please some one help me to generate a code to convert count edge to rpm?

Regards

0 Kudos
Message 1 of 5
(2,432 Views)

This should be very straightforward:

 

You have code that counts edges.

You have code that keeps track of how much time has elapsed since the first edge was captured.

 

Divide the number of edge counts by the current timer value and you will get RPM; albeit, the RPM will be an average but I think you understand.

CLD | CTD
LabVIEW 2011 SP1 | TestStand 4.5
0 Kudos
Message 2 of 5
(2,427 Views)

Thank you foor your time.

I know how I can do counter but the problem I have no idea how can I do timing for it to give me the rpm.

could you please send me the vi file for it or give me some steps which I can follow.

many thanx

0 Kudos
Message 3 of 5
(2,410 Views)

Hi,

 

The method you use for doing this does depend on what hardware you are using. You need to be sure that you can sample the encoder fast enough to catch all of the digital edges.

 

Please find attached a good example if you are simply using a digital input device:

 

https://decibel.ni.com/content/docs/DOC-18586

 

Thanks,

 

Aaron

Aaron. E
Product Performance Engineer
Dyson
0 Kudos
Message 4 of 5
(2,370 Views)

Hi

I would like to thank you the code you had sent me.

I had this code before but unfortunately it dose not work with me.

about the code what is the desired rate value?

many thanks

 

Naser

0 Kudos
Message 5 of 5
(2,366 Views)