Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Initialize array with NaN

For a data recording, graphing and analyzing VI, why should I initialize the arrays to NaN after reading the data from files. I figured it is for synchronization. Can anyone give a detailed explanation?

0 Kudos
Message 1 of 2
(4,290 Views)
You posted to the wrong board. Your question has nothing to do with instrument control.

That being said, it has nothing to do with synchronization. It is generally used to preallocate the memory used by an array. This would be used along with a replace array function.
0 Kudos
Message 2 of 2
(4,287 Views)