Go to Post The best legacy of this little machine is the inspiration she provided to a whole generation of future explorers who witnessed the unveiling of a planet through the eyes of a robot. - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2013, 13:00
c.claudio c.claudio is offline
Registered User
FRC #3013
 
Join Date: Jan 2013
Location: Vallejo
Posts: 2
c.claudio is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-02-2013, 18:00
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: How to get VEX Encoder to work with the cRIO?

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.
Attached Files
File Type: vi Encoder Example.vi (27.5 KB, 8 views)
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award

Last edited by blackflame2996 : 04-02-2013 at 18:17. Reason: Added find home function to vi
Reply With Quote
  #3   Spotlight this post!  
Unread 04-02-2013, 19:48
c.claudio c.claudio is offline
Registered User
FRC #3013
 
Join Date: Jan 2013
Location: Vallejo
Posts: 2
c.claudio is an unknown quantity at this point
Re: How to get VEX Encoder to work with the cRIO?

Quote:
Originally Posted by blackflame2996 View Post
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 04-02-2013, 22:30
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:58.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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