LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting measurement in current to other units in LabVIEW NXG

Please I have a challenge on how to convert unit in current to other units such as pH, psi, uS, and gpm in LabVIEW NXG. Please how can I go about it.

0 Kudos
Message 1 of 7
(3,516 Views)

NXG has no built-in unit conversions.  You'll either have to make your own, use regular LabVIEW which does have unit conversions, or find a 3rd-party library (probably in .NET, like this one) to create a NXG wrapper for.

0 Kudos
Message 2 of 7
(3,478 Views)

Hi ola,

 

how to convert unit in current to other units such as pH, psi, uS, and gpm

It doesn't make sense (in physics) to convert from current (Ampere) to pressure (psi), resistance/conductivity (µS), flow (gpm), or pH value.

It only makes sense in a "electrical measurement" way - after you read the datasheets of your sensors and apply the equations given there to your DAQ readings…

 

Do you have problems to apply simple math equations on your DAQ readings?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(3,461 Views)

Thank you for your responses. Let me clarify the unit conversion needed. I have sensors (pH, electric conductivity and pressure) with output of 4-20mA  on my LabVIEW NXG. I want to know how to have my output display in the appropriate units (pH, uS/cm and psi) respectively.

From the manual of the sensors, I have the relationships between the current  output and the appropriate unit. E.g, 4-20mA corresponds to 0-50psi for pressure. I can interpolate and convert current to pressure easily after obtaining results from LabVIEW NXG But rather, I want to know how I can have the appropriate units displayed during measurements with the sensors on LabVIEW NXG. May be how to achieve this with GVI. A video link or detailed explanation will be helpful. Thank you in anticipation.

0 Kudos
Message 4 of 7
(3,452 Views)

You do the conversion in you LabVIEW code!

 

You read from the device, you have a number that represents mA.  You subtract 4.  Divide by 16.  Multiply by your scale factor of 50.  Now you have a value that represents the real world psi.    Use that number in all further calculations.

 

I would recommend looking at the online LabVIEW tutorials
LabVIEW Introduction Course - Three Hours
Learn LabVIEW

0 Kudos
Message 5 of 7
(3,442 Views)

Thank you so much for your response. Please, how do I go about the LabVIEW code you mentioned with LabVIEW NXG 1.0.  

0 Kudos
Message 6 of 7
(3,435 Views)

@ola2 wrote:

Please, how do I go about the LabVIEW code you mentioned with LabVIEW NXG 1.0.  


 

Seriously, go take the tutorials.  This is VERY basic to put down the math functions and add constants.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 7
(3,432 Views)