LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

decimal seperator question

Hi all,
 
My problem is quite simple : I want Labview to ignore the localized decimal seperator settings and always use a period (I'm in Canada so most of the computers use a comma instead). I did set the option in the Front panel item of the Options menu and it works fine... in the VI. When I build an application with this VI and I execute it, guess what, the numeric controls on the front panel use a comma.
 
Am I missing something? Anyone knows how to fix it?
 
Thanks,
 
Alex
0 Kudos
Message 1 of 2
(2,575 Views)

hi there

all settings from the options are saved in the file LabView.ini in the LabView folder. the setting for the decimal seperator is

useLocaleDecimalPt=False

just play around with the options and see how LabView.ini changes.

When you create an executable the instance of the Runtime Engine (RTE) reads the file <your apps name>.ini in the folder of the application instead of LabView.ini, so you can adjust the options for each application as you like it. but be careful: the application builder may create a default (i.e. empty) ini - file that replaces an existing one, so always make backups. when creating an installer add the .ini - file to the list of additional files and install it in the applications directory.

another tip: for a "static" selection of the seperator i would prefer the "Scan from String" and "Format into String" functions cuz then i can set the seperator (and format and many more) in my code and not in a seperate file which may be edited or deleted. just doubleclick on the functions for more information.

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
Message 2 of 2
(2,569 Views)