# Please help: building behavioural experiment

**URL:** <https://discourse.psychopy.org/t/please-help-building-behavioural-experiment/1919>\
**Category:** Coding\
**Created:** [February 15, 2017, 12:24pm UTC](https://discourse.psychopy.org/t/please-help-building-behavioural-experiment/1919 "2017-02-15T12:24:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fresearcher](https://avatars.discourse-cdn.com/v4/letter/f/3ab097/32.png) [@fresearcher](https://discourse.psychopy.org/u/fresearcher)\
**Post date:** [February 15, 2017, 12:24pm UTC](https://discourse.psychopy.org/t/please-help-building-behavioural-experiment/1919/1 "2017-02-15T12:24:19Z")

</div>

So I’m just trying to create a simple experiment in which participants read a short narrative and then make judgments on the content. I’ve encountered two problems: (1) is that after the participant text input screen I can’t progress to the next frame and (2) is that I want Psychopy to loop the trial and access a different text each time so the narrative changes but everything else stays the same, is that possible?[fwram\_template.py](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/1X/c20634dd3e4dc35bc54426cfb80826681bbd4ea1.py) (19.6 KB)

---

<div class="post-metadata">

**Author:** ![Michael](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/michael/32/16_2.png) [@Michael](https://discourse.psychopy.org/u/Michael)\
**Post date:** [February 16, 2017, 12:05am UTC](https://discourse.psychopy.org/t/please-help-building-behavioural-experiment/1919/2 "2017-02-16T00:05:36Z")

</div>

(1) I think you’d need to give a smaller minimal working example to isolate the problem (I don’t think anyone will wade through the whole code here unless you can narrow the scope. Even pointing to a specific line number would help…)

(2) Yes, this is certainly possible. But it is such a fundamental aspect of how PsychoPy works that I think you’d best start with watching Jon’s YouTube tutorial on the Stroop task. That is a Builder tutorial but the principles are the same. Once you understand that, you can look at implementing it in code, by using a `TrialHandler` class linked to a .csv file of texts:  
[http://www.psychopy.org/api/data.html#psychopy.data.TrialHandler](http://www.psychopy.org/api/data.html#psychopy.data.TrialHandler)
