|
Re: Potentiometer code
It won't work, although your angles are calculated correctly.
The setpoint input (the desired position) must be is the same units as the process variable (the current position).
The potentiometer is in volts: 0-5v
You can either convert the pot voltage to match your angle range, or change your angles to be the pot voltage range.
The pot voltage min/max range will have to be measured by moving the arm to it's minimum/maximum position and reading the pot value through the LabVIEW front panel or a LV probe.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
|