I am reading force sensor data using NI DAQ card, I am able to read the data perfectly but I am confuse how to set the desired sampling rate.Right now when I am checking the sampling rate it is giving me random value like some time it is 500hz and some time 50000hz.
here is the code that I am using for reading force sensor data and calculating sampling rate.