Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Potentiometer code (http://www.chiefdelphi.com/forums/showthread.php?t=90841)

cilginbilgin 03-02-2011 15:53

Potentiometer code
 
I was wondering if anyone can tell me if this code works.









v

Uploaded with ImageShack.us

cilginbilgin 03-02-2011 15:56

Re: Potentiometer code
 
Victors are connected to window motors.
And window motors controls the arm.

Angle(min) = 30 degrees.

Angle(max) = 120 degrees.

Mark McLeod 03-02-2011 18:09

Re: Potentiometer code
 
It won't work, although your angles are calculated correctly.

The setpoint input (the desired position) must be is the same units as the process variable (the current position).

The potentiometer is in volts: 0-5v

You can either convert the pot voltage to match your angle range, or change your angles to be the pot voltage range.

The pot voltage min/max range will have to be measured by moving the arm to it's minimum/maximum position and reading the pot value through the LabVIEW front panel or a LV probe.

cilginbilgin 04-02-2011 03:31

Re: Potentiometer code
 
Thank you really much Mark !!!!

Alan Anderson 04-02-2011 08:29

Re: Potentiometer code
 
Quote:

Originally Posted by Mark McLeod (Post 1015103)
]The pot voltage min/max range will have to be measured by moving the arm to it's minimum/maximum position and reading the pot value through the LabVIEW front panel or a LV probe.

Or you could just measure it with a voltmeter. :P

Mark McLeod 04-02-2011 10:05

Re: Potentiometer code
 
Quote:

Originally Posted by Alan Anderson (Post 1015421)
Or you could just measure it with a voltmeter. :P

That's the answer in the Electrical sub-forum.
LabVIEW means we don't need multi-meters.:)

JamesBrown 04-02-2011 10:42

Re: Potentiometer code
 
1 Attachment(s)
I attached a VI I wrote to handle scaling of analog inputs, it assumes your Potentiometer has a linear taper (some have log tapers) Min and Max voltage are the voltages at the min and max angles, not necessarially 0v and 5v


All times are GMT -5. The time now is 10:16.

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