|
Re: Need help programming a potentiometer
Simply declare a new analog channel (Begin.VI); in periodic tasks, get your refurm name (outside the loops) then put a get voltage on the inside of a loop running at about 100 times a second. You will need to multiply the voltage from the get voltage block (located in analog) in order to get an accurate reading. then use this number however you wish, maybe send it to a global variable. You could also run the refurm name and the get voltage in the teleop (although periodic tasks is much more efficient for this sort of thing).
|