01-14-2016 09:49 AM - edited 01-14-2016 09:50 AM
I have a problem i cant convert text from file to numeric array and i dont know why. I add my vi and txt file.
Solved! Go to Solution.
01-14-2016 09:51 AM - edited 01-14-2016 09:55 AM
What have you tried?
Did i just not see the VI there? Maybe i need more coffee. I can't open it anyways.
01-14-2016 10:01 AM
Read from spreadsheet string will work for you.
01-14-2016 10:02 AM
I can't open it either, but on my platform I had to remove all the commas first.
01-14-2016 10:03 AM - edited 01-14-2016 10:04 AM
Crisdragon / aputman,
I assumed the comma was the thousands separator, not the delimiter.
01-14-2016 10:04 AM
Are the commas delimiters or thousand separators?
01-14-2016 10:09 AM
There is a right-click option for the Read Text File to read lines. Enable that and set the number of lines to read to be -1 (read all lines). This will give you an array of your data points. Then just use the Fract/Exp String To Number to get your data.
01-14-2016 10:12 AM
Thank you for the Read Lines tip Crossrulz 🙂 On my machine I still have to remove all the commas to get it to convert to number correctly.
01-14-2016 10:17 AM
@Gregory wrote:
Thank you for the Read Lines tip Crossrulz 🙂 On my machine I still have to remove all the commas to get it to convert to number correctly.
As do I.
01-14-2016 10:27 AM
@aputman wrote:
@Gregory wrote:
Thank you for the Read Lines tip Crossrulz 🙂 On my machine I still have to remove all the commas to get it to convert to number correctly.
As do I.
Same for me. That is due to localization. Some places use the comma as a decimal place. Glancing at the data, I just assumed the OP was in one of those locals.