Go to Post It only takes micro-seconds to release the magic smoke and empty the teams' budget. - Jim E [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 16-02-2015, 12:07
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
PotentiometerGetNormalized.vi

I'm totally baffled by this VI. The help system for this VI reads exactly the same as AnalogChannelGetAverageVoltage.vi. Yet the little bit of the readings I've seen from this VI look like they range from 0-1. It almost sounds like some sort of percentage of the total voltage range.
FYI, the range of values I've seen from this VI runs between .040 to .365 using roughly a third of the total turns of the potentiometer. These values don't sound like voltages to me. I haven't been able to test this extensively because the mechanical guys are still tinkering and I can't get much time with the robot.

Does anyone know the range of values this VI should output? I really need to know before I can trust our arm to PID control using this VI.
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2015, 12:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
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: PotentiometerGetNormalized.vi

Quote:
Originally Posted by BitTwiddler View Post
FYI, the range of values I've seen from this VI runs between .040 to .365 using roughly a third of the total turns of the potentiometer.
That makes sense. 0.365 minus 0.040 equals 0.325, which is pretty close to one third.

Quote:
Does anyone know the range of values this VI should output?
I'm not a LabVIEW guru but it seems awfully likely that the output range is 0 to +1, representing the fraction of the total output range of the pot.


Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2015, 12:30
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: PotentiometerGetNormalized.vi

It looks like the help for that VI is incorrect. If you look at the diagram, you'll see that it divides by the instantaneous voltage of the rail to correct for sags, and it returns a value between 0 and 1.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2015, 12:48
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: PotentiometerGetNormalized.vi

Quote:
Originally Posted by Greg McKaskle View Post
It looks like the help for that VI is incorrect. If you look at the diagram, you'll see that it divides by the instantaneous voltage of the rail to correct for sags, and it returns a value between 0 and 1.

Greg McKaskle
Duh! I didn't even think to open the diagram. I now see the output is constrained to a range of 0 to 1. Sigh, it's been a long build season.

Thanks again Greg.

Last edited by BitTwiddler : 16-02-2015 at 13:09.
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 21:28.

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