Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6008 - How do I display both Linear pot position (mm) and it's output (volts) in LabVIEW ?

Solved!
Go to solution

I've got a USB-6008. I have a linear potentiometer attached to the USB DAQ. Currently I can display the pot output voltage in LabVIEW via AI0 channel on USB DAQ. However I also want to be able to show the linear potentiometer rod position (mm) that generates this voltage. can anyone advise how to do this ?

0 Kudos
Message 1 of 5
(3,443 Views)

What is the scale factor or relationship between voltage and position? Once you know that simply scale the voltage you are reading and display the result in another indicator.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 5
(3,431 Views)

Hi,

 

The pot is linear 5v in = 5v out. Therefore for full stroke of 100mm then 0mm should be 0v and 100m = 5v. What functions/blocks in LabVIEW can I use to display the pot position (mm) as you suggest via scaling ?

 

THanks again.

0 Kudos
Message 3 of 5
(3,427 Views)
Solution
Accepted by topic author esctosh

Since there is no offset, just use the multiply primitive with a constant of 20 wired to one of its inputs, wire the other input to your voltage reading. Wire the output of the multiply to a numeric indicator to display the position.

 

-AK2DM

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 4 of 5
(3,421 Views)

Hi, I would like to connect String Pots and Linear Pots to the NI 9216, I am kind of confused as its my first time to deal with this kind of connections. Also all the resources I found was using different modules where the wires are connected to the pins (ground, +5V and AI0).

 

Thanks in Advance

0 Kudos
Message 5 of 5
(1,916 Views)