Go to Post I have no clue. All I know is that every year the riddle in the clue has confused me but this year it is the lack of confusion that confuses me. - hallk [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 03-02-2012, 11:11
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Exclamation seeking help with labview

This is my second year with labview. I've only learned the basics of labview. I just recently learned how to do button latching. What I'm trying to accomplish is a motor to turn so many degrees. I got a encoder setup, and I'm getting output from it, but I've came across that the encoder can be wired to the Digital I/O or to the Jaguar.

What I'm asking for help is to have a joystick button that turns the motor ON and the motor will just turn so many degrees. Than it will turn off when its done turning.

Does anyone have an example on how this can be done? Or have tutorials that i can be pointed to?
Any help is greatly appreciated,
Team 3747 - Head Programer, Steven B.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-02-2012, 17:19
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: seeking help with labview

There's a "Motor with Encoder" example included with LabVIEW. Start with that. Incorporate it into your robot project (an included tutorial tells you how). Now you can run a motor and you can read its position.

The next step is to determine what position you want it to be at, and stop the motor when it gets there. I can think of several ways to do that, all completely different. If you still need help coming up with ideas, ask again.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2012, 15:55
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: seeking help with labview

Quote:
Originally Posted by Alan Anderson View Post
There's a "Motor with Encoder" example included with LabVIEW. Start with that. Incorporate it into your robot project (an included tutorial tells you how). Now you can run a motor and you can read its position.

The next step is to determine what position you want it to be at, and stop the motor when it gets there. I can think of several ways to do that, all completely different. If you still need help coming up with ideas, ask again.
I can get all that running but i don't know how to take that code and have it control the motor.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2012, 21:36
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: seeking help with labview

Do you know how to make the motor run? Do you know how to read the encoder? Can you figure out what encoder value represents the desired motor position?

If you start the motor when the joystick button is pressed, and stop the motor when the encoder indicates that you have reached the target, that might be enough. What motor are you using, and what is it connected to (gearbox, sprocket and chain, direct drive of a mechanism, etc.)?
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 11:36.

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