Hello
 
I am trying to verify the sampling rate of my soundcard. My plan is to sample for 1 second and count the number of samples. My initial plan was to multiply the number of sampled input-buffer-frames with the number of samples each buffer-frame was specified to contain. This works ok as a rough estimator of the sample rate at low frequencies.
 
There are, however, some problems with this plan. You can easily sample at very high sample rates, if the buffer-frames are made large.  
 
So, my next thought was that the number of samples in each buffer-frame, was less than what it was specified to be at high frequencies. I tried to measure the dimensions og the final array of sampled buffer frames, but the "array size"-vi, showed that the dimensions was: 
 
<number of frames sampled> x 2
 
I was expecting:
 
<number of frames sampled> x <number of samples pr. frame>
 
Besides that I am suspecting that the the size of the buffer frames are(when I get to measure it correctly) the size that they are specified to be, which I guess leaves me only with verification of the sample rate by manuel inspection of a sampled waveform.
 
So my question is: is there a way to verify the sample rate other than by manuel inspection?
 
I have included my basic program.
  
Regards