LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

decimal separators

Hello renault,

here comes the changed convert.vi.

Hope this helps.
 
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 11 of 20
(2,152 Views)
hello gerd,
  i couldnt open the Vi. my version of labview is 7.0 and iam using win xp.
0 Kudos
Message 12 of 20
(2,148 Views)
Hello renault,

saved as LV7.0 🙂


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 13 of 20
(2,137 Views)

Thanks very much gerd .it is running well.

But i couldnot get away from the doubts here .

In finding out a character

1. the statement always executes false  and always returns char to replace field as dot and new char/dec  char field  as comma.

2.  when i read a data file  with a dot separator, after the execution of the replace function it changes to comma separated string.

so in either case it is giving out a comma separator.

3. does this program in general work for the windows with  dot separator.?

 thanks in advance gerd.

 

 

 

0 Kudos
Message 14 of 20
(2,134 Views)
Hello renault,

it should work... But maybe you try this changed version?

Edited: Please change the constant (both string/numeric) to 1.5!

Message Edited by GerdW on 07-19-2005 01:22 PM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 20
(2,119 Views)
sorry gerd, it still remains the same .  true statement never executes.
should i uncheck the local system decimal point in tool options of front panel?
0 Kudos
Message 16 of 20
(2,112 Views)
The first condition in GerdW's VI can be true only when the OS decimal separator is a dot, like (natively) under English Windows, or German Windows with modified regional settings.
It does not depend on the file content.
At this point, I got enough confused about what you want to do: isn't it to read numbers from a given ASCII file irrespectively of the OS settings?
If this is your aim, GerdW's VI is what you need.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 17 of 20
(2,100 Views)
hello paolo and Gerd,
 irrespective of the operator settings, i need a program which reads the data and replaces with my customized decimal separtor and prints in a string format.
anyway i will try to check the program with an english version too.
great thanks for the effort you have made.
regards
renault
   
0 Kudos
Message 18 of 20
(2,093 Views)
Hello renault,

I thinks that's what we have done...
First we load the data independently from the system decimal setting. Then you can save them with your selected decimal point (the part with format strings "%.;" and "%,;").
What else do you want?


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 19 of 20
(2,090 Views)
thanks Gerd , i just got the trick understood clearly of finding the characters . great effort . thanks once again
 regards
Renault
0 Kudos
Message 20 of 20
(2,084 Views)