LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I extract data from array of strings?

double post!
 
 
 
 
 
 


Message Edited by peter.a.azucena@intel.com on 05-07-2008 05:31 PM
0 Kudos
Message 11 of 15
(956 Views)
OK, here's a version that only retains the end of the strings.
 
Be careful. Building arrays like that is dangerous, because the arrays could be of different lenght.
0 Kudos
Message 12 of 15
(956 Views)
My example here is a just a small picture of what I really going to use it for and the lines of strings may vary from one unit to another, with this i won't be able to use array size. and yes it should be a  "4_result_", sorry.
 
 
0 Kudos
Message 13 of 15
(955 Views)
We still can assume that that there is a pattern in your data and for each set you are interested in three fields that are guraanteed to be there and always in the same order. In addition, the result field is the last field you want.
 
Attached are two versions.
The more efficient version preallocates the final array based on the fileds per record (=4) and number of fields to be retained (=3) (version 4). The other builds the array as you go (version 5), which is much less efficient..
 
See if this works. 🙂
 
 
0 Kudos
Message 14 of 15
(944 Views)
The mod4 seems to be more efficient and it actually remove a row that doesn't have a complete set of columns, the problem is when i need to retrieve additional columns, i will have to add a case result every time. I did however made a good progress with your examples.
 
here is the actual project that i've made so far, which reads a file as an input and grab all the headers/information then retrieve summary information of each device tested.
 
I've put all files in this zip file since i can only attach upto 3 items, if you try with "bad datalogfile" you'll see that the data from 3rd unit got pushed to 2nd unit.
 
Regards,
Peter
 
0 Kudos
Message 15 of 15
(926 Views)