Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Data loss when resizing 2D array

$
0
0

I'm collecting data and inserting into an array that I've made larger than I know will be used.  I then resize the array using SetArrayBounds because I now know the number of iterations that have been performed.  I end up with an array of the correct size but the data consists of the first row only with the first column missing.  All other elements are 0 (array of numbers).  Any idea what's going on?

 

I wanted to start with an empty array, resize to no rows and the known number of columns before starting the iterations, then add a row at the beginning of each iteration.  I was shot down on that but it seems like that would work better.

 

Kelly Bersch


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>