Change sample period