From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,521 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,510 Views)

Thanks, this solved the problem to me. 

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