Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   How to get VEX Encoder to work with the cRIO? (http://www.chiefdelphi.com/forums/showthread.php?t=112589)

c.claudio 02-02-2013 13:00

How to get VEX Encoder to work with the cRIO?
 
We decided to use a VEX Encoder to measure our shooter's angle, but we aren't sure how to get the VEX Encoder to work with the cRIO, or if it is even possible.
Our team would appreciate it if you would share a sample code with us, (if possible), and the wiring schematics.
Thank you in advance.

blackflame2996 04-02-2013 18:00

Re: How to get VEX Encoder to work with the cRIO?
 
1 Attachment(s)
Well, I honestly do not know if the encoder will read correctly, but go ahead and plug the two cables into the DIO ports on the digital breakout. Here is some basic code to get you started with the coding. You will most likely want to find home using a limit switch in autonomous.

c.claudio 04-02-2013 19:48

Re: How to get VEX Encoder to work with the cRIO?
 
Quote:

Originally Posted by blackflame2996 (Post 1227493)
Well, I honestly do not know if the encoder will read correctly, but go ahead and plug the two cables into the DIO ports on the digital breakout. Here is some basic code to get you started with the coding. You will most likely want to find home using a limit switch in autonomous.

Apparently, our team changed from the VEX Encoder to the AS5145B Magnetic Encoder, will the sample code also interface with it?

Alan Anderson 04-02-2013 22:30

Re: How to get VEX Encoder to work with the cRIO?
 
That kind of magnetic encoder is a much more appropriate sensor for reading the angle of a rotating component like an elbow joint or shooter elevation. The usual way to interface with it is to read an analog voltage it provides. Nothing fancy.


All times are GMT -5. The time now is 12:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi