Hello GerdW!
Thank you for your help! We only need to read the buffersize, frequency for samples and measuretime once. That is why we did not have a while-loop from the beginning. Is there possible to solve this problem in another way? Do you have any tip? If one for example set measuretime 1.5 seconds we get 2 seconds because of the following chart could not handle float-numbers. But this is the solution that we have done so far... Then we get a delay in the system because of this problem...
Thank you again for your help! Best regards.