07-03-2019 06:13 AM
Hi,
I trying to build my first VI and struckleíng with getting a numeral value from my reading, just give NaN as output, but my chart works fine.
What am I doing wrong?
07-03-2019 06:25 AM
Until give index value to index array it'll give output as 0th index values. Check row0 whether its having values or not.
07-03-2019 06:43 AM - edited 07-03-2019 06:49 AM
Hi M.,
you get a mean of NaN when the "subarray" is empty. Simple as that.
07-03-2019 06:51 AM - edited 07-03-2019 06:53 AM
Your chart must have some old data. You need to tell the DAQmx Read how many data points that you want to read. Currently you are getting an empty array - and that's why you're getting the NaN.
Edited to note that GerdW beat me to the punch.