LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Toggle between unit types

Hello,
I am using LabView v7.1 student edition.  I am trying to set it up so that users can toggle between English and SI units for temperature.  I have tried using the unit covnersions which work fine, however it seems that I need a method of having the units on the thermometer toggle between SI and English as well.  Is this possible?  Thanks
0 Kudos
Message 1 of 2
(2,421 Views)
You can't change the units of Indicators or Controls at Runtime. What we did to get around that is using unit-less indicators, displaying the caption of the indicator and changing it in runtime, e.g. switch caption between "Temperature [°C]" and "Temperature [K]" when the user toggles the units.
You can still use the unit conversion functions to convert between the different units. For example, if you get the temerature from a sensor in K, you can use convert to "K" (to assign the unit) and then convert using "degC", which will return a unit-less number in °C.

0 Kudos
Message 2 of 2
(2,398 Views)