# Setting number of reps with staircase

**URL:** <https://discourse.psychopy.org/t/setting-number-of-reps-with-staircase/3331>\
**Category:** Builder\
**Created:** [October 27, 2017, 9:13pm UTC](https://discourse.psychopy.org/t/setting-number-of-reps-with-staircase/3331 "2017-10-27T21:13:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Newbie](https://avatars.discourse-cdn.com/v4/letter/n/dc4da7/32.png) [@Newbie](https://discourse.psychopy.org/u/Newbie)\
**Post date:** [October 27, 2017, 9:13pm UTC](https://discourse.psychopy.org/t/setting-number-of-reps-with-staircase/3331/1 "2017-10-27T21:13:32Z")

</div>

I’m confused: In the psychophysicsStaircase demo, I set the nReps parameter to 3/saved the file, but it still repeats the trial many times more than that when I try running. How can I limit the number of repeats?

 ![40 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/5/55c653a17c4749299f20f05c4ca419d879380b96.png)

---

<div class="post-metadata">

**Author:** ![Eleonora\_Parrotta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/eleonora_parrotta/32/8502_2.png) [@Eleonora\_Parrotta](https://discourse.psychopy.org/u/Eleonora_Parrotta)\
**Post date:** [May 25, 2020, 4:30pm UTC](https://discourse.psychopy.org/t/setting-number-of-reps-with-staircase/3331/2 "2020-05-25T16:30:16Z")

</div>

Hi!I am having the same problem, any chance that you managed to solve it?  
Thanks in advance!
