Log in

View Full Version : Potentiometer and LabView


DominickC
23-01-2012, 20:28
Hello -

I'm trying to get our potentiometer to work. This potentiometer did not come in any FRC kit of parts, it's just one we had laying around.

We've got it going into Analog Input 2. When in the drivers station, we see the voltage change on Analog Input 2 as we turn the shaft of the potentiometer.

Now, I've been trying to get the $@#$@#$@#$@# thing to display the angle, but it just won't work with me. Here's where I open it in begin.vi.

http://i41.tinypic.com/2le2jbr.jpg

For some reason, it won't take the analog channel.

Now, here's what I have for teleop.

http://i42.tinypic.com/1hquyo.jpg

This just takes the voltage and turns it into an angle based on the conversion factor of 0.01388 volts per degree. It then flattens it and sends it off to the drivers station where it's unflattened and thrown into a numeric display.

Any help? Thanks.

plnyyanks
23-01-2012, 22:03
Delete your current control and then create a new one by right clicking on the Analog Channel node on the Open VI and selecting Create->Constant.

DominickC
23-01-2012, 22:15
Seems to have worked, thanks! I'll test it tomorrow and let you know how it goes.