Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How to display displacement from an analog linear potentiometer

Solved!
Go to solution

I want to display the displacement of an analog linear potentiometer in labview 9.0. 

 

The potmeter gives out a signal from 0-5 volts and has a travel of 38.5mm. I'm using a cDAQ-9174 and a 9201 card to recieve the signal.

 

I'm pretty new to labview and i have no idea of where to start. I have only managed to display the voltage in a waveform chart. How do I convert the voltage to displacement in mm (or inches)?

 

I'll be very gratefull to whoever can help me. 

0 Kudos
Message 1 of 5
(8,080 Views)
Solution
Accepted by topic author oooFredrikooo

Isn't this just a linear relationship? If 0 V = 0 mm and 5 V= 38.5 mm, the displacement should follow this formula:

 

displacement = (5 V / 38.5 mm) * measured voltage.

 

Just use the math functions in LabVIEW to implement this.

 

Kind regards,

Jochen Klier

National Instruments

0 Kudos
Message 2 of 5
(8,073 Views)
Yes it is, and i'm embarrassed. I drowned in buttons and did'nt think. Thank you.
0 Kudos
Message 3 of 5
(8,071 Views)

i do have same problem...when physically measure i got displacment of 3cm.but potentiometer shows 6mm only.since im using sp1-12 and voltage i otained is 0.1...is there any other reason for getting original disp?

 

0 Kudos
Message 4 of 5
(6,894 Views)

I'm a little confused about your issue. Are you getting the correct voltage reading but having trouble converting it. The post a couple above you covers the conversion really well.

TimC
National Instruments
Applications Engineer
0 Kudos
Message 5 of 5
(6,880 Views)