Feedback on NI Community

cancel
Showing results for 
Search instead for 
Did you mean: 

comma, dot conversion

i have a  simple program which reads the string of floating point numbers.'dot is the decimal separator in this string'. the problem is  though i format the 'read from spread sheet file.vi' ´the output gets truncated showing only the integer values and the rest after dot are zeros .
Note:Mine is a german OS. so comma is the usual decimal separator.
 please hand over a program or some tips to  control  the decimal operators so that the program can read and write data on all sorts of operating systems.
thanks in advance.
best regards
0 Kudos
Message 1 of 3
(4,139 Views)

You accidentally posted in the feedback forum with a LabVIEW related question. You might want top post your question in the LabVIEW forum instead. 🙂

 

In any case, if you always want to use a period as decimal separator, go to tools...options..front panel and uncheck "usel localized decimal point".

From the online help:<hr>Use localized decimal point—Uses the decimal separator for the operating system instead of the period. Place a checkmark in this checkbox if you want LabVIEW to operate within the system configuration. Remove the checkmark from this checkbox if you want LabVIEW to use periods in all cases for the decimal point.<hr>

Message Edited by altenbach on 07-04-2005 10:36 AM

0 Kudos
Message 2 of 3
(4,132 Views)
hello alten
thank you for reminding me in the inapporpriate forum, but let me finish this question , i also make a copy of this  message  into the forum you suggest.
As you have replied i dont have rights to change the settings as  you suggested.
My task is :
i have to write a labview program which can read  (dot or comma ) decimal separator file and write the data  in (dot or comma) and depending on the german or english OS.
for eg :
 steps:
 1. Find the decimal separator and depending on dot or comma  , choose one of the following
 2.2D array [1.23  2.34 ] should be written as [1,23 2,34] or [1.23 2.34] 
    and also if the data is [1,23 2, 34]  should be written as [1,23 2,34] or [1.23 2.34] .
 I should include all the four cases in my program .
 please help me out iam still  learning labview . please also provide a  program code that would be more explanatoy for me . 
 thanks again.
 
0 Kudos
Message 3 of 3
(4,123 Views)