LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

beam data with unknown space string

Hi

 

I want to convert the txt file to array.

I try but only open the file (see the attach LV).

 

My question, how can I remove the space (if number of space is unkonw) and make it an array or 3 array (1D)

 

Please help me

 

thanks

 

0 Kudos
Message 1 of 2
(2,435 Views)

There are a ton of ways to do this.  I realized very quickly how large your datafile is, and I think this method is one of the quickest ways to parse your data file.  This assumes there are always 3 columns of data in the file and that the number of rows in a file is not known prior to reading in the file. If utilizing the snippet directly, I had to cut down the number of elements saved as default in the text string in order to upload the snippet.

Good luck,

Paul

parseBeamDataFile.png

 

When converting the selection to a snippet, it made the local variable a value property node plus required reference.  If you are not using the snippet directly, in the disable case is your file read to the text string indicator.

Message Edited by PJS on 11-03-2009 09:35 PM

Paul
0 Kudos
Message 2 of 2
(2,426 Views)