Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   seeking help with labview (http://www.chiefdelphi.com/forums/showthread.php?t=101852)

mtnteam 03-02-2012 11:11

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.

Alan Anderson 03-02-2012 17:19

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.

mtnteam 06-02-2012 15:55

Re: seeking help with labview
 
Quote:

Originally Posted by Alan Anderson (Post 1119340)
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.

Alan Anderson 06-02-2012 21:36

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.)?


All times are GMT -5. The time now is 11:36.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi