Since there is no FORTRAN compiler for the cRIO

, I am trying to do some programming in Labview. I have a motor attached to a 10 turn pot, and want to use it like a servo. Has anyone written a sub-vi that will take as input a desired pot reading and move the motor as required to achieve that reading? If so, would you be willing to share it?
Also, I am using a PID vi to track the target with the camera, and would like to set a larger deadband (the turret "hunts" back and forth trying to center the target, and I want it to stop when it's "close enough".) I have played with the PID constants, but can't stop the hunting, and there doesn't seem to be a deadband constant.