![]() |
Counter VI Question
So the image is of a Counter get VI calculating the rpm of an encoder. The implementation I based this off of required that the loop execute precisely every 10 milliseconds (or however often you want) and that requires a timed loop. But what if you used the tick count and a shift register to calculate the rpm based off of how long the loop took to execute instead on relying on a timed loop? I will test this on the robot soon so if it seems like a sound implementation feel free to use it.
|
Re: Counter VI Question
1 Attachment(s)
Forgot Photo...
|
Re: Counter VI Question
Have you tried the rate output from the counter?
|
Re: Counter VI Question
Quote:
On the rate counter I used the encoder index and for the counter I used the rising edges of a 1024 count encoder. I measured the output of a drill going 1,500 max. I double checked the speed via a non-contact tachometer and reflective tape while measuring the speed on the RIO. I chose the counter this time because I was interested in getting my driven distance in encoder ticks for auto mode. |
Re: Counter VI Question
Quote:
|
Re: Counter VI Question
Quote:
|
Re: Counter VI Question
Quote:
|
Re: Counter VI Question
I see. I thought you needed to open the counter in semi-period mode to get a rate output. Right now I am using external direction mode.
|
Re: Counter VI Question
Quote:
|
| All times are GMT -5. The time now is 08:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi