Go to Post I am allergic to work... - Mike Schroeder [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-02-2010, 12:55
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Rotation sensors

Hey

Does anyone know how to get rotation sensors to work in LabView?
we are trying to get the to work for autonomous mode

So foar I have found that they are under encoders in Labview, but still do not know how to get them to work

Thanks everyone
__________________
Registered Assassin & Bodyguard
  #2   Spotlight this post!  
Unread 27-02-2010, 13:03
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Rotation sensors

Which rotation sensors are you using? I've been looking for a good set for a long time!

Jacob
  #3   Spotlight this post!  
Unread 27-02-2010, 13:09
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Rotation sensors

Just the ones that came with the KOP

most likely the ones off andy mark
__________________
Registered Assassin & Bodyguard
  #4   Spotlight this post!  
Unread 27-02-2010, 13:18
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,856
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Rotation sensors

It's a bit complex, but LabVIEW has an example (Encoder Example) that spells out all that you need to setup. It assumes a digital quad encoder, so a different type, such as a single or an analog one that came in the KOP with the magnets, would be handled differently.

From the Getting Started window select "More..." at the bottom right under Examples.
Then select "Encoder Example"
Open up the Block diagram and you can copy/paste the code over to your project.

It breaks down like this:

Begin.vi
  • DIO Opens for two channels (assuming a quad encoder like the KOP US Digital ones)
  • Convert to Digital Source
  • Encoder Open
  • Encoder Config Timer
  • Encoder Start
  • Encoder Refnum
Autonomous Independent.vi
  • Encoder refnum
  • Encoder Get
Finish.vi
  • Close encoder
Checkout http://www.usdigital.com/first for the encoder assembly guide.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-02-2010 at 13:23.
  #5   Spotlight this post!  
Unread 27-02-2010, 14:20
whytheheckme's Avatar
whytheheckme whytheheckme is offline
Registered User
AKA: Jacob Komar
no team
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Providence, RI
Posts: 1,320
whytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond reputewhytheheckme has a reputation beyond repute
Send a message via ICQ to whytheheckme Send a message via AIM to whytheheckme Send a message via MSN to whytheheckme Send a message via Yahoo to whytheheckme
Re: Rotation sensors

Ah, the wheel encoders. I thought you had meant just a simple rotation sensor.

Jacob
  #6   Spotlight this post!  
Unread 27-02-2010, 16:26
NinjaWithBurnin NinjaWithBurnin is offline
Professional FBI-C
AKA: The Ender
FRC #1749 (Renesiance)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2015
Location: nashua, NH
Posts: 18
NinjaWithBurnin is an unknown quantity at this point
Re: Rotation sensors

Thank you, I figured out how to start them

can you post some diagrams of how I could use the encoders control the motors in the autonomous mode?

Thanks
__________________
Registered Assassin & Bodyguard
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotation Sensors brennerator Electrical 6 09-02-2007 09:18
Rotation Systems Goaliexam Technical Discussion 9 06-06-2006 17:56
where can we buy hall effect sensors or gear tooth sensors amirjpl Electrical 3 13-02-2006 11:02
Yellow Rotation Sensors ? de_ Electrical 6 26-04-2005 15:40
Interrupts and rotation sensors kor Programming 3 12-02-2004 11:05


All times are GMT -5. The time now is 23:28.

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