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: 

Index Array always returns zero when reading from 3D Array

Solved!
Go to solution

I have 3D array diamension as a 9x2000x5 array.  I have this array filled with data and when I attempt to read a single data point out of the array the Index Array function always reads zero. I have place a probe on the input 3D array and when I set the probe indexes to the same data point the probe shows the value stored in the array. I also have an indicator displaying the 3D array data and it shows data in all the locations. For example if I attempt to read location 0, 144,0 in the 3D array it alway returns zero. Yet I know the value in that element is 6.8616E-5. Every element I attempt to retreave from the array yields zero.

 

Has anyone seen the Index Array exhibit this kind of behavior?

0 Kudos
Message 1 of 4
(2,782 Views)

No, and that's not likely to be the source of the problem. Without actually having a VI in hand, I'd guess the problem is with the indicator that displays the element you're retrieving. If I had to guess, you probably have the wrong representation for the indicator (like an integer instead of a float), or you have the digits of precision too low.

 

If you attach your VI we can provide a more definitive answer. 

Message 2 of 4
(2,767 Views)

here is an example of indexing from a 3D array:

 

 

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 Kudos
Message 3 of 4
(2,755 Views)
Solution
Accepted by topic author johnfr
Issue resolved. As usual it was pilot error on my part. Had the row and column lines reversed.
0 Kudos
Message 4 of 4
(2,716 Views)