Quote:
Originally Posted by Robobuff1.0
I would like to execute a code once when I click a button on the controller. Like when I click button 1 on the controller I want the arm to move to the specified enconder position and stay there until I press another button to retract it. I just need an example to work with.
|
When you press the first button, your code should set the PID setpoint to whatever position you want the arm to go to.
When you press the other button, your code should set the setpoint to whatever position corresponds to "retract".
Does your version of LabVIEW have examples? That would be a great place to look.
Here's another good resource:
http://team358.org/files/programming...2009-/LabVIEW/