View Single Post
  #4   Spotlight this post!  
Unread 11-02-2009, 18:21
airnate airnate is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Feb 2009
Rookie Year: 2009
Location: southeastern CT
Posts: 93
airnate is a jewel in the roughairnate is a jewel in the roughairnate is a jewel in the rough
Re: Encoder Motor Control

OK, now I understand what you want (I think). So I presume you want to make a motor (let's assume a Victor) move in a single direction until the encoder count reaches a certain value (i.e. setpoint).

If you look at the included Motor Control Example, which is available from the Examples on the Getting Started window when LabVIEW starts up (or from View->Getting Started Window... in the menubar), then you can see how to tell a motor to go to a set speed.

In your case, you probably want it to be driven at a fixed speed until the encoder hits your setpoint. So instead of using a control like the Motor Speed (-1 to 1) in the Motor Control Example, you could use a case structure or Select function.

The encoder value could be wired as shown in the picture to set the motor speed.
Attached Thumbnails
Click image for larger version

Name:	encoder_feedback.png
Views:	103
Size:	19.3 KB
ID:	7407  
Reply With Quote