LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Numeric indicator display format

Hi,

 

We are developing application using LabVIEW8.6

In this we want to display some numeric values in following format

 

For example :

123.46 as 123,46

 

We want to replace dot by comma in numeric indicator using advanced Advanced edit mode under Display Format.

Please provide syntax to display required format in numeric display.

 

Thanks in Advance........

0 Kudos
Message 1 of 8
(6,041 Views)

Get the value as string. Use find and replace function to replace . with ,

 

Start wiring and post if you stuck up anywhere

0 Kudos
Message 2 of 8
(6,033 Views)
dot.PNG
0 Kudos
Message 3 of 8
(6,028 Views)

As suggested by fellow forum ppl, you can display the numeric data with comma only as a String Indicator and changing of the dot in the numeric indicator/control to comma is not possible.

 

Regards,

Sundar Ganesh

0 Kudos
Message 4 of 8
(6,024 Views)

Use the Format to String and the instructions found here.  https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHcBCAW&l=en-US

 

Here is an example.

 

Comma Decimal_BD.png

Message 5 of 8
(6,010 Views)

The O.P wanted to know what to set the "Advanced" format to in a numeric indicator to get "," as the decimal separator. In this case ther's no need to convert to a string if it's just for display, you can simply prefix the format string with %,; in the manner suggested by Wayne

 

See https://www.ni.com/docs/en-US/bundle/labview/page/format-specifier-syntax.html

 

Rod.

 

Message Edited by Rod on 07-21-2009 05:43 PM
Message Edited by Rod on 07-21-2009 05:49 PM
0 Kudos
Message 6 of 8
(5,974 Views)

Hello,

 

Thanks for your suggesation.

 

For numeric display to replace .(dot) by ,(comma) we can use format to srting function.

 

But we tried to set same syntax of format string in the propertise of numeric display under display format in advanced edit mode.

 

We have two quries, please provide solutions on these:

 

1.Why same syntax is not valid in Numeric properties(without using format to string function)?

 

2.Can we implement same format to numeric entry function?

 

Thanks in advance......

 

 

 

 

 

0 Kudos
Message 7 of 8
(5,943 Views)

LabView by default will use the decimal seperator that your OS is using.  Here is link to a NI doc on  Localizing VI's that contained these two statements.

 

"By default, LabVIEW adapts to use the appropriate decimal separator on your operating system preferences, which affects the display of numbers within controls and the operation of functions that convert between numbers and strings."  ( Regional settings in WinXP )

 

"Select Tools»Options, select Front Panel from the Category list, and place a checkmark in the Use localized decimal point checkbox to specify whether to use the system settings (locale) for the decimal separator or a period."

 

 

 

Message 8 of 8
(5,916 Views)