I think " Number of samples to trigger alarm" only refers to the first alarm. "Notification distance" refers to the time span between the first alarm and the second alarm, and between the 2nd and the 3rd, and so on. So, I would try polling once every second, Number of samples to trigger alarm...