I am trying to array 2 pairs of x-axis coordinates to be integrated in a while loop. Somehow the readings always comes out as NaN. Please have a look at my attached VI and screenshot.
The 2D array coming into your while loop shows 1 column and 50000 rows. So you need to put a '0' as the column index. Further along, the array subset functions are responding to their index and length inputs. You may want to probe those inputs at run time to see if they make sense. The reason you get NaN (Not-a-number) is just LabVIEW's response to a divide-by-zero error.
There are different cases for NaN in labVIEW, however in this case as seen from the attached vi, the reason is LabVIEWs' response to the divide-by-zero error.