04-21-2010 07:13 AM
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.
Solved! Go to Solution.
04-21-2010 09:30 AM
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
04-21-2010 09:41 AM
04-29-2013 01:37 AM
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?
04-29-2013 03:35 PM
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.