07-02-2008 11:57 AM
Hello,
I'm having a bit of trouble trying to read and analyze an ASCII text file from an instrument.
The basic idea (logic flow) of what I'm attempting to do is as follows:
(1) Open ASCII text file (Think I got this part correct)
(2) Convert it to a spreadsheet (Think I got this part correct)
(3) Search the spreadsheet array for a specific term (e.g. "Z (um)"); need the row index of this term. (No luck yet)
(4) Analyze the numeric values (not up to this yet)
So at present I'm having difficulties with the 3rd step...tried various array and string search vi's but haven't had any luck. In the attached VI I was trying to trim the spreadsheet columns hoping that I could create a searchable 1 D array but my methods haven't worked.
Once I'm able to do this I will then need to analyze the numbers after the search term; thinking I'll need to convert the spreadsheet to an array of numeric values.
If anyone can offer some assistance it would be greatly appreciated.
I have ttached my current VI as well as the text file I'm trying to work with.
best
SS
07-02-2008 12:51 PM
07-02-2008 12:54 PM
07-02-2008 12:56 PM
07-02-2008 12:59 PM
Good questions smercurio..
I just modded the original code to add the search feature. I didn't grasp where this was going to... 😮
07-02-2008 01:14 PM
07-02-2008 01:18 PM
07-02-2008 01:32 PM - edited 07-02-2008 01:33 PM
I then need to extract the numeric values below the "Z (um)" and "Delection (V)". In this file there are 1000 data points in each column, below the said headers, that I would like to have in a 1D numeric array so that i can run analysis on.
07-02-2008 03:16 PM
Ahhhhh.....very nice.
Works great. Saved me a lot of time.
Thank you very much!
11-01-2012 05:52 PM
Hello
I have the same issue here, but the file to convert is this one attached.
The main difference is that the resulting array must be a char data array and not a numeric data one.
Victor