LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to measure RPM of an encoder using 5MHz counter of NI USB 6008?

I have an encoder with a resolution of 1024PPR. I would like to measure RPM of a motor in LabVIEW using that encoder via a DAQ Card (Counter). Is there any example availble for the same?

0 Kudos
Message 1 of 5
(3,026 Views)

Hi Kartik,

 

RPM = (pulses per second) * 60 / 1024 PPR

 

All you need to do is to check the value of the counter each second and to calc the difference to the previous value...

Examplesfor reading a CTR are found in the example finder (Help menu in LabVIEW)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,020 Views)

Thanks buddy 🙂

I would like to know one more thing. Generally in Digital Inputs along with Logic States (High or Low) we get Time Stamps. Like that do we get any time stamps from Counters to calculate number of pulses per second accurately?

 

Regards,

Kartik S

0 Kudos
Message 3 of 5
(3,016 Views)

Hi Kartik,

 

I'm not sure, but can't you upset a DAQmx task for your CTR to use continuous sampling with a rate of 1Hz? No need to measure time then as that would be done by the DAQmx driver...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,008 Views)

I will try this and come back to you in a couple of days.

Weekend ahead 😛 😄

Thank you 🙂

 

 

Regards,

Kartik S

0 Kudos
Message 5 of 5
(3,003 Views)