LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to convert units programmatically?

I could not find an answer online.
Units are a great feature of LV, but this is driving me nuts. I want to
set the limits of a control according to the value of an indicator,
which I calculate at execution. The problem is that the two have units,
and the user may choose them to be different. While I can use "less
than", etc., to compare the values, the min. and max. in the property
node require pure numbers. There is no way to convert to a given unit,
so there is no way to get around this.

It is especially maddening since the functionality is already there:
All I need is a VI similar to the exisiting conversion which would
accept a string as a unit and convert to that unit.

Am I making myself clear?

--
germ
Remove "nospam" to reply
0 Kudos
Message 1 of 2
(2,953 Views)
Have you tried the "Convert Unit" function?
0 Kudos
Message 2 of 2
(2,953 Views)