11-30-2010 08:24 AM
Hi guys,
I used the 'Format Into String' function. Here I edited the format string into '%.3f;', which means I tell labview to use a decimal point. But when I probe my formated string I see a 'comma'. I use labview 2010.
What is wrong here?
11-30-2010 08:27 AM
what country is your computer set to? in europe this would make sense
11-30-2010 08:55 AM
What? Belgium. Why it make sense in Europe?
11-30-2010
09:11 AM
- last edited on
05-01-2025
03:53 PM
by
Content Cleaner
A few things:
11-30-2010 09:13 AM
%.3f just tells LabVIEW to use 3 decimal places, it doesn't specify whether it is is decimal point or comma.
Look in the help file for format specifiers and then localization codes.
If you want to force it to be a decimal point use %.; for a comman %,;
01-20-2011 04:32 AM
02-07-2011 04:28 AM
Hi Thomas,
In the Attachment you can find a small example. In the example there are two numbers and one is forced into a period and the other into a comma.
When you wire multiple inputs to the function, you also need to configure all of the inputs in the format string.
If you have further questions, don't hesitate to ask them.
Cheers,
Nico Lammens
National Instruments
NIBE AE
12-16-2015
04:43 AM
- last edited on
05-01-2025
03:54 PM
by
Content Cleaner
Hello,
I've got a problem with the "Read From Space Delimited File" from this support link:
http://www.ni.com/example/25669/en/
The problem is that the values behind the decimal point are not copied into the final array, even though the indicator field "Spreadsheet string" on the front panel shows that the decimal values have been read correctly from the example text file. Can anyone explain why this is happening please?
12-16-2015 04:52 AM
12-16-2015 04:57 AM
thanks for the quick reply!!
• I have unchecked the box as mentioned before
tools>options>use localized decimal point (I live in Germany)
having done that, I tried to directly insert a decimal point into my final array, which didn't work, I could still only use commas.
• when I change the string format to %,3f for example, the final array is filled with zeros
It is weird. I should say that I use parallels desktop on mac OS. Does the example work on your computer?