From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!
0 Kudos
Message 1 of 3
(2,553 Views)
You must go in the labview option menu, you can select 'use the local
separator' in the front side submenu (LV6i).

If you use the "From Exponential/Fract/Eng" vi, you are able to select this
opton (with a boolean) without changing the labview parameters.

(sorry for my english)

Lange Jerome
FRANCE



"Nina" a ecrit dans le message news:
50650000000800000096450000-1019262487000@exchange.ni.com...
> I would like to read a text file in which the decimal numbers are
> using dots instead of commas. Is there a way of converting this in
> labVIEW, or how can I get the program to enterpret the figures in the
> correct way?
>
> The program doest enterpret my figures from the text file in the
> correct way since the numbers contain dots instea
d of commas. Is there
> a way to fix this in labVIEW, or do I have to change the files before
> reading them in the program? Thanks beforehend!
Message 2 of 3
(2,553 Views)
I want to suggest that you consider using Extract Numbers.vi ( click on the web link below). Another way is to use match pattern function. Both method will work if you read in your text file as string. For additional information check ASCII File in LabVIEW help.

http://zone.ni.com/devzone/explprog.nsf/6c163603265406328625682a006ed37d/0df1ddf31a5b3cbd86256854006481fb?OpenDocument
0 Kudos
Message 3 of 3
(2,553 Views)