LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text file with numbers in number array

There is text a file with three columns of numbers (type 1.234), between columns the empty space can be created by means of tabulation and-or a blank. Besides in the end of a file there can be empty lines from табуляций and-or blanks. It is necessary these given to transform in numerical array for the subsequent processing. In my example LabView incorrectly translates numbers and perceives empty lines as zero number (in Control Panel format numbers for Russia - 123 456 789,00).
0 Kudos
Message 1 of 3
(2,289 Views)
Choose the decimal character used in the file to convert the number string to a number.
Regards,
André (CLA, CLED)
0 Kudos
Message 2 of 3
(2,269 Views)
Hi tumanoval,

it's not incorrect to convert empty lines to empty array elements...

You should remove empty lines before the conversion or remove empty rows/columns in the array after conversion! In newer versions of LabView you will find a function to "trim whitespaces". I have attached a down-converted versionSmiley Wink
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 3
(2,260 Views)