def setGlobalSampleRate(samplesPerSecond): """Set the sample rate per channel. This is a global setting for all channels. The maximum rate is 500kS/s divided by the number of channels in use. This is 62500 samples/s per channel if all 8 channels are used. :param samplesPerSecond: The number of samples per second. """ hal.setAnalogSampleRate(float(samplesPerSecond))