03-12-2007 02:02 AM
03-13-2007 01:24 AM
12-15-2010 07:38 AM
Hello I am trying to generate a plot from a string array that has been saved as a text file. I tried to use the read from text file tool then string to array but it didn't work, then I used the scan from string function but I don't know how to format the string to get as output the values I need that are the first and third column. I am new to labview and I was wondering if somebody can lend me a hand. Attached text file.
12-15-2010 12:12 PM
You would have been better off starting a new thread for your question rather than tacking onto a 3+-year old thread.
I am assuming you're trying to convert the first column to a timestamp? There's a variety of ways to read the file. One simple way to do it is to use the Read From Spreadsheet File to read it in the whole thing and then just chop off the "header" lines. You can then parse out the lines as needed. See attached example (LV 8.2). In this example I convert the first column into a timestamp. You can view the online help for the Scan From String to see the codes that are used to scan the text into a timestamp. The XY Graph is configured to display the X axis as absolute time.