Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Localization codes

I'm using the Write to spreadsheet file VI to save a 1D vector of acquired measures. As I need to process these measures with Matlab, I would like to have a dot, instead of a comma, as decimal separator.
I know it's possible to change the localization code to control the decimal separator used but it doesn't work. Can you suggest me the right way to combine the format specifier string "%.7f" with the localization code "%.;"?
Thank you very much,
regards
Luca Bascetta
0 Kudos
Message 1 of 4
(2,974 Views)
In the LabVIEW options setup (Tools menu in LV6), for the Front Panel options, unselect the "Use localized decimal point" selection, then restart LabVIEW.
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
Message 2 of 4
(2,974 Views)
Thank you very much - that was exactly the solution for my problem... thx from germany.
Btw., can anybody post or give a link to a list or an explaination of the various diffrent format specifiers like "%.3f" (standard) or "%5lf" or "%b" and so on ?

What stands the "f" for ? floatpoint ?
0 Kudos
Message 3 of 4
(2,974 Views)
They are listed in the Format Specifier Syntax section of the LabVIEW help manual. Or you can use the LabVIEW 'Format into String' function to build the necessary string. Simply double click on the function and to open the property dialog.

---------------

Excerpt from the manual:

Use the following conversion codes for integers:
x�Hexadecimal integer (for example, B8).
o�Octal integer (for example, 701).
b�Binary integer (for example, 1011).
d�Signed decimal integer.
u�Unsigned decimal integer.

Use the following conversion codes for floating-point numbers:
f�Floating-point number with fractional format (for example, 12.345).
e�Floating-point number in scientific notation (for example, 1.234E1).
g�LabVIEW uses f
or e depending on the exponent of the number. LabVIEW uses f if the exponent is greater than �4 or less than the precision specified. LabVIEW uses e if the exponent is less than �4 or greater than the precision specified.
p�Floating-point number in SI notation.

---------------


Christian L
authored by
Christian L, CLA
Systems Engineering Manager - Automotive and Transportation
NI - Austin, TX


  
0 Kudos
Message 4 of 4
(2,974 Views)