Go to Post Every robot is a key element to each victory, no matter how much or how little they help. - JosephC [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 20-02-2011, 17:01
Arthur But' Arthur But' is offline
Registered User
FRC #2213
 
Join Date: Nov 2010
Location: Israel
Posts: 17
Arthur But' is an unknown quantity at this point
Re: calculation for the potentiometer

Quote:
Originally Posted by MotorHead View Post
The main problem is scaling the signals. The potentiometer will be something like 0 - 10v, the joystick is in -1 to +1, and you are thinking in terms of angle of the arm. Take a look at the following link:

http://team358.org/files/programming...2009-/LabVIEW/

Towards the bottom is a good Labview example of slaving a Joystick to a potentiometer signal using PID. I think this is similar to what you want to do. Take a look and reply back with more questions.
It's a very nice web-page you have there.....
Anyway, the example is very similar to what i was asking.
For example: How do you calculate it so, 1.17 is 90 deg max down and 3.9 is 90 max deg up? and how can i change it to be for example, 40 deg max down and 60 deg max up?
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2011, 17:22
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: calculation for the potentiometer

Quote:
Originally Posted by Arthur But' View Post
It's a very nice web-page you have there.....
Anyway, the example is very similar to what i was asking.
For example: How do you calculate it so, 1.17 is 90 deg max down and 3.9 is 90 max deg up? and how can i change it to be for example, 40 deg max down and 60 deg max up?
Those are measured values. You drive your device to where you want the limit to be with a probe or indicator on the Analog Voltage and see what it reads.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
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 09:21.

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