Sorry! here is the code I use:
n:=Channels_Count(channels); //n is the same as No_Channels
actual := adc11_set_interval (BUFFER_SIZE*1000 , BUFFER_SIZE, channels, n);
// actual := adc11_set_interval (TargetTime, BUFFER_SIZE, channels, n);
adc11_run (BUFFER_SIZE, BM_STREAM);
If I change the target time or 'BUFFER_SIZE*1000' to be equal to BUFFER_SIZE, that is to reduce the 1000 to 1, I apparently get the samplingrate I would expect, if I use a sleep loop as in your C con example, but the timevalues from the function call:
no_of_values := adc11_get_times_and_values (mytimes, myvalues, BUFFER_SIZE);
always returns timevalues with increments of 66us for one channel, 133us for two channels, 200us for three etc...
The 'actual' variable returns the number of samples that I would expect instead of the actual time.
So I suspect that the values I get is just readout very slowly, but actually sampled very fast!
Please explain in detail what I should expect, and how to interpret the parameters when streaming.
Regards Palle Koch