LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with comma and point

Hello,
I have a problem with comma and point in a double-digit.
I use a english driver for HM8142. When I get the values then I only get
int-digits. How can I change "Use comma as separator" . I tried to change
the option in LabVIEW.
I changed it, then I got the window. "To change, restart the programm". I
have done this. But when I have a look at the option, it is not changed.
What can I do?
I am not the admin on the computer.

Martin
0 Kudos
Message 1 of 6
(4,592 Views)
Hi Martin,

you do not have to change any system settings neither in LabVIEW nor in your windows.

All instrument drivers should use a point as decimal separator. You can overwrite the decimal point handling in the string functions "Scan from string" and "Format into string".

Make a right click on the function and use "Edit Scan String". In the dialog open the ring under "Selected operation", the last entry allows you to set the character for the decimal separator. This separator will be used for all the following floating point numbers.

From your name and problem I think you are located in central europe. I do not have a german version of LV so I cannot tell you how the elements are named in german.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 2 of 6
(4,592 Views)
The best you can do is uncheck the "use localized decimal point" in your labview options/frontpanel
We pointed out already several times that in engineering nobody (at least no instrument) uses a localized decimal point in Europe and that we never understood why NI choose to default to this non engineering default !!!!
I've seen numerous days wasted by this crazy default.
I'm not saying that a localized decimal point is useless, only that it is not a good default.
Already the naming of this localized decimal character is wrong, because it never is a point when it is localized.
You can better use special options for userio than for instrument IO.
greetings from the Netherlands
0 Kudos
Message 3 of 6
(4,592 Views)
Hi Martin,

a thing I have overseen. Can you change any option for LabVIEW? If not, you have bet your administrator to allow full access to the file LabVIEW.ini in the labview directory or you have to locate the file in a folder where you have full access and change the short cuts to direct LV to load the setting from there by starting LV with the -pref "path to your LV ini file" parameter.

Waldemar
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
0 Kudos
Message 4 of 6
(4,592 Views)
> The best you can do is uncheck the "use localized decimal point" in
> your labview options/frontpanel

I tried to do this, but after a new start the uncheck isn't there again.

Martin
> We pointed out already several times that in engineering nobody (at
> least no instrument) uses a localized decimal point in Europe and that
> we never understood why NI choose to default to this non engineering
> default !!!!
> I've seen numerous days wasted by this crazy default.
> I'm not saying that a localized decimal point is useless, only that it
> is not a good default.
> Already the naming of this localized decimal character is wrong,
> because it never is a point when it is localized.
> You can better use special options for userio than for instrument IO.

0 Kudos
Message 5 of 6
(4,592 Views)
try to do this when logged in with administrative rights.
If you still keep these problems, your labview.ini file is probably readonly.
labview.ini is next to labview.exe.
This is the correct procedure
greetings from the Netherlands
0 Kudos
Message 6 of 6
(4,592 Views)