A more elegant solution In the quisk.py.
In the first place:
self.sample_rate = Hardware.VarDecimSet() # Get the sample rate.
# ------------------------------------------------------------------------------------------------------added
abc = round(self.sample_rate / 1000)
self.sample_rate = abc * 1000
# ------------------------------------------------------------------------------------------------------------
self.vardecim_set = self.sample_rate
And in the second place:
rate = Hardware.VarDecimSet(i)
# ------------------------------------------------------------------------------------------------------added
abc = round(rate / 1000)
rate = abc * 1000
# ------------------------------------------------------------------------------------------------------------
self.vardecim_set = rate