View Single Post
  #2   Spotlight this post!  
Unread 14-12-2010, 17:55
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
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

How is the potentiometer connected to the cRIO (ie where is each wire going)? Have you measured the pot's signal with a simple voltmeter to ascertain for certain that it is actually providing a signal?



Reply With Quote