LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data reading and writing problem? how to set " Read from Measurment File express.vi" 's readout datasize?

Dear all,

I want to use Labview to process a data.
Now I have a array in a text file.
this array is very very big. which is at least row*col = 6 * 100000;
the column size always 6,
but the row size is ramdom, some times is very big, like bigger than 65535,

when I use "read from measurement file express.vi" to read this file, the array I could get always 6*5339, I don't know why. the column size is always 5339.
and then I delete the 1st row of the array and then write into a txt file via "write measurement file express. vi", it takes a very long time. almost computer has no response. after a while, no file was creat to record the data.

is there an efficient way to process such big data file and store the processed file into a new file

thank you very much

Jack



Message Edited by weichengatech on 03-09-2006 12:00 AM

0 Kudos
Message 1 of 3
(2,651 Views)

Hello,

 

There’s no real efficient way to read the file if you don’t know exactly how many rows of data you have.  Your going to just have to read a row at a time and add the results to the end of an array (granted for the clever programmers there are some more efficient ways to do this than just with ‘build array’).  I would start by asking you how much information you know about the file and what the exact structure of it is (i.e. is it a binary file, a tab delimited file, or a LVM file)?  Could you provide a screenshot of the code you are running? If you provide a little more information on the file structure we might be able to contribute some additional information.

 

Look forward to hearing back from you-

Travis M
LabVIEW R&D
National Instruments
0 Kudos
Message 2 of 3
(2,639 Views)
thank you , man
I got some answer from my friend. using read from spreadsheet.vi, it is more convinience.

thank you  all the same

Jack
0 Kudos
Message 3 of 3
(2,631 Views)