LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Front Panel Controls to 0 with different units

I have many controls on a Front panel, having different units (degC, l/min. etc,...)

I tried to set all control values to 0 using their property (array of control references through a for loop). The problem is that for all controls having "degC" units, the values become -273.1 instead of 0 (0 in base units instead of 0 degC). Is there a way to generically force 0 as a value regardless of the units? Or the only way is to first check each control units and then convert the "0" to their specific units using a case structure?
0 Kudos
Message 1 of 2
(2,476 Views)
Hello jfmorneau,

degC is no SI unit, but K is. Labview takes your values always in base units and converts them to the display unit. Why not wire a constant "0 degC" to locals of those controls with temperature units? Or check the unit first...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,473 Views)