Thank you for your question, it should be possible to pass arguments to the function that will then determine the sample rate. However, the unit has a maximum sample rate of a 10000 samples per second and therefore you are unable to get 50uS intervals. To achieve this you would need to use one of our ADC-200, ADC212 of PS3000 series products.