LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the local decimal separator on windows xp OS ?

Hi all,
 
I would like to known how to change programmatically with LV8.5 the local decimal separator ? I want to force this parameter to the point separator, so to be sure that it's not the comma (if it's the comma when installing the executable, the ascii files are not read properly).
 
Thanks.
Wilfried.
0 Kudos
Message 1 of 6
(11,910 Views)
Hi Wilfried,

you can use the format code "%.;" to get points as decimal separator in each string formatting function.
Or you change the Windows regional settingsSmiley Wink
Or you switch off the "Use localized decimal point" setting in LabView...

The first hint is safestSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(11,899 Views)

Hi Wilfried_...,

i can´t say you how to change it, but i know that you have to restart LabView to apply the changes. You can check which decimal separator is selected and show a message.

Hope it helps.

Mike

Message 3 of 6
(11,898 Views)
Thanks for your answers. Maybe I was not very clear for my issue :
 
The software I developped run properly when Labview was installed on the computer. When I recently uninstalled Labview from the computer, problems appeared when LV read some files, due to the change of the default regional settings of the computer (the comma was the default of the OS, and the point was the default in LV). In fact, this software must be installed on other computer in the future with a setup.exe file and so on (so without a complete install of Labview). An other future problem was the language of the OS : I always work on a french version of Windows XP, and in the future, the software will be installed on english version (in India, Korea, China, US ...). So I want to be sure that the decimal setting will be good to run the software (for all the versions of XP).
 
 
Wilfried.
0 Kudos
Message 4 of 6
(11,885 Views)


@GerdW wrote:
Hi Wilfried,

you can use the format code "%.;" to get points as decimal separator in each string formatting function.


This is the important one. Put it at the beginning of every format specifier!
Some functions have a boolean control 'use local decimator' make sure this is 'F'

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 5 of 6
(11,876 Views)
OK, I will know it for my next development, but for this one, the number of VI and sub VI are pretty large ...
Wilfried.
0 Kudos
Message 6 of 6
(11,867 Views)