View Single Post
  #3   Spotlight this post!  
Unread 14-12-2010, 18:15
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Labview Potentiometer Control

Quote:
Originally Posted by pfreivald View Post
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
If it looks like you are getting noise, you probably are - I'm betting that your code is just fine.

Wire one end of the pot to +5V, the other end to ground, and the middle to the signal input. These should be labeled on the shell for the analog breakout.
Reply With Quote