Go to Post I love it when the robot's develop personality quirks. - Mark McLeod [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-01-2012, 20:28
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Potentiometer and LabView

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.



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

Now, here's what I have for teleop.



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.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 22:03
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Potentiometer and LabView

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.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 22:15
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Potentiometer and LabView

Seems to have worked, thanks! I'll test it tomorrow and let you know how it goes.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi