Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with arrays

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.
Download All
0 Kudos
Message 1 of 3
(2,623 Views)
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.

David Moerman
TruVIEW Technology Integration Ltd.
0 Kudos
Message 2 of 3
(2,623 Views)
Hi,

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.

Best Regards

Atul Wahi
Applications Engineer
www.ni.com
0 Kudos
Message 3 of 3
(2,623 Views)