|
Labview Potentiometer Control
We're a couple of never-ever programmers trying to teach ourselves LabView (in the next month...) Can someone help us out with some sample code for a trim potentiometer?
We added an analogue Open into Begin.vi (and gave it a unique DevRefNum based on some sample code for a limit switch), then tried to read values from the Get Voltage vi in the teleop.vi (inside the main loop)...
We added a probe to the output of the Get Voltage vi, and it just fluctuates around zero (looks like noise) no matter what the potentiometer does. (The pot is in analogue 1, and we identified it as such in the code.)
Thus, if someone has some sample code they would be willing to share, that would be fantastic.
Thanks,
Patrick
__________________
Patrick Freivald -- Mentor
Team 1551
"The Grapes of Wrath"
Bausch & Lomb, PTC Corporation, and Naples High School
I write books, too!
|