![]() |
Programming an Arm?!?
I've only used Labview for about 7 months and I am still confused. Our team is trying to use a PID to control where the arm starts and stops. For example, only rotating 270 degrees. My problem is that I understand the mechanics of a PID and what it means. I'm just not sure how to even begin building it. I was told to connect a PID to a Motor but what else? How do I even define a program for an arm in the Begin.vi? Some help would be great! :confused:
|
Re: Programming an Arm?!?
Here's an example of a motor position slaved to the position of a joystick.
You can replace the joystick with pre-defined values for preset positions. You do need a sensor on the arm to feedback where it currently is. |
Re: Programming an Arm?!?
Quote:
|
Re: Programming an Arm?!?
Any other suggestions? Helped but still confused, do I need to make two different programs for the shoulder and forearm. I want the shoulder to move 270 degrees and the forearm 180. How would I do this?
|
Re: Programming an Arm?!?
Have you considered doing a timed function? Motor will only run one way for a set amount of time and then stop. Then run the other way for a set time and stop.
|
Re: Programming an Arm?!?
Quote:
You can do the two motor controls in the same way. Just copy and paste the code you have for one motor: so, have two PID controls, each wired to one of the motors and one of the sensors. The program will be the same, just different device reference and different setpoints. |
Re: Programming an Arm?!?
Quote:
|
Re: Programming an Arm?!?
Quote:
|
Re: Programming an Arm?!?
Quote:
|
| All times are GMT -5. The time now is 03:52. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi