02-21-2006 11:01 PM
02-21-2006 11:37 PM
As a quick fix, you would need to use a WHILE loop and stop once the first match pattern returns a -1 as offset.
Somwhow, your code looks very inefficient. How big are these files typically?
02-22-2006 09:03 AM - edited 02-22-2006 09:03 AM
Message Edited by smercurio_fc on 02-22-2006 09:03 AM
Message Edited by smercurio_fc on 02-22-2006 09:08 AM
02-22-2006 09:32 AM
It is not not finalize yet.
I usually solve with what I know and then go back and maximaze.
The file could have up to 120000 lines
thanks for the help.
I used format into file because I do not know any other way to save the numbers in an text file
02-22-2006 11:19 AM
It looks like your file is a tab delimited 2D array of numbers. As has been mentioned, if you use the "Read from Spreadsheet File.vi" you will get a 2D numeric array. This eliminates all of the parsing of data that you're doing inside the vi (at least it would appear that way). All you would need to do is use autoindexing and then pull out the appropriate number from the 1D array (row) inside the loop.
Also, is there a reason that you're writing unaltered data to a new file? It would seem that you're just making a new copy of the file (maybe I'm missing something here, I've not gone through your program extensively). There is no data in the second file that's not in the first file. Are you cutting out some columns? This just seems like a waste of disk space to me.
02-22-2006 11:44 AM
I think I understand what you are saying.
You think I should reorgabize the array witout using the shift registers and using the read from spreadsheet vi.
I am not saving the same file.
I am trying to save the data in 3 different formats. I am eliminating the time stamp and saving it in order to use later on in my graphs. Then I am saving the raw data before I concatenate the first 4 bits and after I concatenate the the first 4 bits.
If I use autoindexing I will not need the shift registers,right? Can I then save the while the program is running or I have to save at the end of the process.
I am familiar with operations with strings but I am still a bit weak on array and string working toghether.
I attach what I am doing.
Thanks
02-22-2006 11:44 AM
02-22-2006 01:27 PM
02-22-2006 03:32 PM
02-22-2006 07:26 PM