07-21-2009 06:17 AM
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........
07-21-2009 06:28 AM
Get the value as string. Use find and replace function to replace . with ,
Start wiring and post if you stuck up anywhere
07-21-2009 06:36 AM
07-21-2009 06:40 AM
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
07-21-2009
07:14 AM
- last edited on
04-30-2025
10:33 PM
by
Content Cleaner
Use the Format to String and the instructions found here. https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YHcBCAW&l=en-US
Here is an example.
07-21-2009
11:42 AM
- last edited on
04-30-2025
10:34 PM
by
Content Cleaner
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.
07-23-2009 01:44 AM
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......
07-23-2009
07:24 AM
- last edited on
04-30-2025
10:34 PM
by
Content Cleaner
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."