LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spreadsheet string to array not reading all from .txt file

Solved!
Go to solution

I'm very new to Labview.

I'm trying to read a .txt file (positions.txt) with Read In.vi.

However, the result is not what I wish it to be. The first 3 rows are omitted in the result array, but I don't know why.

I have followed the various tutorials, and can't see why the resulting array starts at the 4th row.

 

Download All
0 Kudos
Message 1 of 3
(2,523 Views)
Solution
Accepted by topic author marvin117

Hi marvin,

 

is there a reason why you want to create a 4 dimensional array?

 

Did your read the LabVIEW help, how LabVIEW formats (or expects) spreadsheet files for array dimensions > 2?

 

Solution:

Change the array constant and indicator to a 2D array!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,512 Views)

Thanks, this solved the problem to me. 

0 Kudos
Message 3 of 3
(2,500 Views)