LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

converting from volts to pounds on labview.

This program is reading voltage input changing with time .. But i have from testing a table of given data of voltage versus pound force applied .. So the problem is that the voltage reading is constantly changing with time . so how can i use the table to convert from the voltage input ( changing ) to pound force .

 

 

Thank you 

0 Kudos
Message 1 of 4
(3,733 Views)

The easiest way to do this is if you have a function that relates voltage to pound force. You can enter this directly into your task configuration and get pound force from your DAQmx Read rather than voltage. If you cannot come up with a function, then a simple table lookup is an alternative. You can do this in your LabVIEW code by using the Interpolate 1D VI (Mathematics -> Interpolation & Extrapolation).

 

Note about your code: When your data acquisition starts you have no way of stopping it. The inner loop as a True wired to the conditional terminal, which means it's an infinite loop and the code will not respond to you pressing the Stop button on the front panel. Instead of placing the buttons inside a cluster leave them free so you can read the Stop button inside the inner loop.

0 Kudos
Message 2 of 4
(3,717 Views)
Sounds similar to this thread?
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 3 of 4
(3,708 Views)

elset191 wrote:
Sounds similar to this thread?

You're probably right. I wondered about that after I posted my reply, but fell on the side of assuming it was not. At least the poster provided code.

0 Kudos
Message 4 of 4
(3,699 Views)