03-31-2016 05:10 AM
Greetings,
I have a two motors with quadrature encoders attached to them.
I am using the Encoder VI with the myRIO, which outputs two values - Counter value and Counter direction. From the counter value I am trying to display the speed (RPM). All the counter value does is is count up or down depending on the direction; I need a way to use these counts to measure the speed. I can't figure out how to do this?
Thank you in advance for your help.
Solved! Go to Solution.
03-31-2016 06:42 AM
You should count difference in counter values and divide it to period of measuring.
03-31-2016 08:20 AM
@Artem.SPb wrote:You should count difference in counter values and divide it to period of measuring.
Not exactly, the result of the count substraction need to be divided by the number of encoder counts/rotation before being divided by dt (expressed in minutes).
Ben64
03-31-2016 08:37 AM
// Not exactly, the result of the count substraction need to be divided by the number of encoder counts/rotation before being divided by dt (expressed in minutes).
03-31-2016 08:53 AM
Thank you very much. I understand now.
05-21-2018 06:31 AM
Hi ,
You have used subtraction , division blocks . Can you tell me the name of that other block in the image?
Thank you !!!
05-21-2018 06:35 AM - edited 05-21-2018 06:36 AM
"feedback node", it's the same as shift register in loops
05-26-2018 07:35 AM - edited 05-26-2018 07:36 AM
Thank you!!!
If I put those feedback node in a while loop , what should be the value of " dt " ??
05-28-2018 02:29 AM
The time between reading or time between counter increase
05-28-2018 03:08 AM
I found the execution time for while loop in another post . Can I use this output as 'dt'?
Thank you!!