LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I load such a long data in labVIEW and convert it from string to array

Dear all
 
I met with a problem when inputing data to labVIEW
 
When I try to load a data, which size is 4(columns)*77900(lines) as shown in attahed file, the labVIEW
 
did not response, How can I deal with it?
 
After loading it, I should convert it to array, what should I do
 
Please help me Smiley Sad
0 Kudos
Message 1 of 7
(4,290 Views)
Try this in 7.0 format.
0 Kudos
Message 2 of 7
(4,280 Views)

Thank you for replying

it works well, but always the size of the data is not known, so it is another problem.

I try to load the files in other ways but it cost a lot of time.

Any more advice?

0 Kudos
Message 3 of 7
(4,258 Views)
I try to use "read from spreadsheet files", but only the first column is recognized
The line separater is "\s", I try to replace it with "\t", which means the "tab", but for
such a large file, the repacement seems impossible since the computer did not
response for a long time and I have to restart my computerSmiley Sad
0 Kudos
Message 4 of 7
(4,257 Views)
Try this. It reserves a large memory area and then reshapes the array after it reaches the end of the file.
0 Kudos
Message 5 of 7
(4,250 Views)
This one is better. It just reads the file and makes it a 2D array of DBL.
 
0 Kudos
Message 6 of 7
(4,242 Views)
Thanks a lot
It woks well, it is interesting to replace the double space with a sigle space
It is not very convinent in labVIEW to restrict the line separater
Many thanks!
0 Kudos
Message 7 of 7
(4,228 Views)