05-09-2019 03:13 PM
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.
05-09-2019 05:44 PM
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.
05-10-2019 01:20 AM
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?
05-10-2019 04:29 PM - edited 05-10-2019 04:31 PM
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.
05-11-2019 10:00 AM
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
05-11-2019 05:29 PM
Thank you so much for your response. Please, how do I go about the LabVIEW code you mentioned with LabVIEW NXG 1.0.
05-11-2019 05:43 PM
@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.