LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal point selection for numeric control input

Hi there,

on numeric controls and indicators it is possible to set the decimal point (independently from regional settings) by using "%<DecimalPointCharacter>;" within its format string (either manually in its properties or programmatically via property node), but this works only for displaying the number (e.g. 3.14 with a format string "%,;%#_g" is shown as 3,14), not for the input of a number. The input seems only to follow the "Use localized decimal point" front panel setting in the LabVIEW options (I am not able to enter "3,14" as number in the numeric control described above, the number is cropped to 3).

 

Or in other words: How do I enter a numeric with comma as decimal point in a numeric control with EN(US) as regional setting?

 

Is there any way to fix this? My goal is to write a multilingual application with LabVIEW (all language settings reside in configuration files), where each language defines its own decimal point, regardless of regional settings.

 

Of course I can avoid this by using a string control, but then I lose all possibilities of a numeric control like range checking etc.

 

Best regards

 

Carsten

0 Kudos
Message 1 of 3
(4,249 Views)

Hi Carsten,

 

what's the reason behind your decision NOT to use the localized decimal point on numeric controls?

Why switch them to (possibly) different settings than the user choosen regional settings?

Best regards,
GerdW


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

Hi GerdW,

 

simple answer: The customer's specifications Smiley Happy

 

The reason behind it could be the ability to switch quickly between a, let's say, german and an english user.

 

But of course if there's no way to realize it, we have to discuss it.

 

But from the logical point of view: I you can modify the decimal point to your needs for displaying a number, why the input doesn't follow automatically?

 

Regards

 

Carsten

0 Kudos
Message 3 of 3
(4,221 Views)