LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Textfile into Array


@Martin1979 wrote:

Good morning everybody!

 

I think the Solution of @PinguX might work for the further processing and I'm close to it.

 

What I get are the numbers in the second row but not the text. And my array has the wrong "color" and shape. I guess that's a mater with the data format. Maybe that's a foolish question but where the h..l do I change that? 🤔


You have to wire a 2D array of string to the 'array type' input of the 'Spreadsheet String to Array' node. The output will change accordingly.

Message 11 of 13
(137 Views)

@UliB wrote:

@Martin1979 wrote:

Good morning everybody!

 

I think the Solution of @PinguX might work for the further processing and I'm close to it.

 

What I get are the numbers in the second row but not the text. And my array has the wrong "color" and shape. I guess that's a mater with the data format. Maybe that's a foolish question but where the h..l do I change that? 🤔


You have to wire a 2D array of string to the 'array type' input of the 'Spreadsheet String to Array' node. The output will change accordingly.


Look at my post where I circled the needed datatype constant in green😉

 

EDIT:  I see from your latest pic that you connected a 2D array, but it's an orange numeric.  Just drag out the zero on the right and drag in an empty string constant from the string palette (or any string really) to change its datatype to string.

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 12 of 13
(108 Views)

The first page of the LabVIEW Learning site covers all these topics and only takes 10-15 minutes to read through. Highly recommended!

 

LabVIEW Tutorial

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 13 of 13
(99 Views)