BreakPoint

cancel
Showing results for 
Search instead for 
Did you mean: 

Rube Goldberg Code

Simple task. Read a CSV file and get the two columns, dropping the header row (seen here)

 

altenbach_0-1617380547065.png

 

Apparently, we need to read the file twice with different delimiters and transpose setting to get a 2D array, one transposed and one not, one containing the first column and one containing both columns, delete the first row or column, transpose or not as needed, delete one column if there is more than one, then reshape to a 1D array to get each column. I am running out of breath!

 

Equivalent code:

 

altenbach_0-1617381166583.png

 


LabVIEW Champion. It all comes together in GCentral GCentral
What does "Engineering Redefined" mean??
Message 2261 of 2,262
(292 Views)

@altenbach wrote:

Simple task. Read a CSV file and get the two columns, dropping the header row (seen here)

 

altenbach_0-1617380547065.png

 

Apparently, we need to read the file twice with different delimiters and transpose setting to get a 2D array, one transposed and one not, one containing the first column and one containing both columns, delete the first row or column, transpose or not as needed, delete one column if there is more than one, then reshape to a 1D array to get each column. I am running out of breath!

 

Equivalent code:

 

altenbach_0-1617381166583.png

 


Classic altenbach🙂

Message 2262 of 2,262
(187 Views)