10-11-2012 03:41 PM
Hey,
I have an easy question but for me it is quite difficult to find a solution. I am new in Labview. My question goes as follow:
When you have a txt-file and you want to read it in labview. How do you do that?
This txt-file exits off numbers. You can see an example of the txt-file in the appendix. After reading the txt-file in labview, I want to put the numbers in an array. So the first column of the array contains numbers that you can find in the first column of the txt-file. How can you do that?
If you can help me, thank you very much!
Kind regards,
Nicolas
10-11-2012 03:47 PM - edited 10-11-2012 03:49 PM
10-11-2012 03:49 PM
Hi,
Try using "Read From Spreadsheet File.vi".
Best Regards,
10-12-2012 12:42 AM
Hello,
I have read your explanations, I have try it, but I don't understand it. Labview is something new for me. So can you please give me a little bit more explanation about the program who reads the txt file in array?
Is it possible to describe step by step how I need to work?
Kind Regards,
Nicolas
10-12-2012 05:07 AM
Hello Nicolas,
Can you post an example (in txt-format) of the spreadsheet file you want to read?
Have you already went through this page?
http://www.ni.com/gettingstarted/labviewbasics/
This will learn you some LabVIEW basics which can be very useful for a new LabVIEW programmer.
10-12-2012 05:29 AM
Use Read from spreadsheet file and give input to this function as your txt file.
10-12-2012 08:53 AM
You need:
Path control (points to the text file)
Read from spreadsheet file (looks like tab separated)
Index array, to get your 1st column
Array indicator to show your result.
Done. 🙂
/Y
10-15-2012 06:30 AM
You also would need some wires... 😉