Go to Post Engineers are not eligible to join NEMO, but that's OK! For us, there is an ad-hoc disorganization, notionally dubbed EMO. Meetings have no agenda and are called at random, usually in the evenings following long days at FIRST events. - Richard Wallace [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 11-02-2010, 15:34
Wen1992 Wen1992 is offline
Registered User
FRC #3324
 
Join Date: Feb 2010
Location: Columbus
Posts: 6
Wen1992 is an unknown quantity at this point
Problems with Encoder

Our team is trying to use an encoder to measure the amount of times our motor turns so we can adjust our kicker during the match. I have no clue first off how to get the encoder to count in labview and second i am trying to set a limit switch in the encoder so that i can then set it to only wind till a certain position. IE Position 1 to Position 3 or 1 to 2 or 2 to 1. Any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2010, 15:44
Racer26 Racer26 is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Apr 2003
Rookie Year: 2003
Location: Beaverton, ON
Posts: 2,229
Racer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond reputeRacer26 has a reputation beyond repute
Re: Problems with Encoder

You need to create an Encoder object from the WPILib stuff. Then you start it, and use Get to get the value. Reset will reset it.

You could for instance then do something like run a motor until encoder get returns 10, or 100 or whatever.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2010, 16:05
Wen1992 Wen1992 is offline
Registered User
FRC #3324
 
Join Date: Feb 2010
Location: Columbus
Posts: 6
Wen1992 is an unknown quantity at this point
Re: Problems with Encoder

Thanks, but I'm curious how you wire the "get" to find the information and I am completely and unequivocally confused of how to set a limit in the encoder as a switch that we can use to judge where the kicker is at. Any Help?
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Encoder problems Pausert NI LabVIEW 3 18-01-2010 12:33
Problems with the KoP Encoder tbd Sensors 2 01-02-2009 15:31
Problems with Encoder Counting bjimster1 Programming 19 07-03-2007 09:59
Encoder Problems bjimster1 Programming 2 10-02-2007 08:04


All times are GMT -5. The time now is 03:48.

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