I expect at least 22937 samples until the array is full. My guess now is, that my index counter "number_of_samples" rises faster than that the actual samples that are written into the array. After the index counter reaches the theoretical max value o...