Go to Post I think this is as close as we'll come to getting that water game we've been waiting for. - Jeff Rodriguez [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-2009, 17:41
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: Encoder Motor Control

Hold on, let me rephrase this. We used the encoder example VI to receive readings from the encoder, that's working fine. Now we want to use those readings to make the motor stop at a certain point.
Reply With Quote
  #2   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:	104
Size:	19.3 KB
ID:	7407  
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
Can any one help us with programing the encoder to control the motor by ticks? Must Be Drama NI LabVIEW 4 09-02-2009 20:54
Optical encoder for denso window motor? jaredtkatz Motors 0 04-02-2009 16:10
encoder vs. motor stephenthe1 Programming 55 06-01-2005 22:07
PID control loop/Encoder question Zee Programming 18 30-01-2004 23:14
Motor Control archiver 2000 1 23-06-2002 23:01


All times are GMT -5. The time now is 21:35.

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