Ensure that sample interval is nonzero