Here is a thread where I asked a similar question a week ago. If you have a encoder on the arm, you'd want to use a PID loop to allow you to be able to move the arm to a specific angle. The thread has details about that. If you just want to control it with a joystick, then all you'd have to do is wire a joystick axis to a motor set output block.