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.

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.

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