I have a six trial experiment. In each trial, a video is played and two stimuli (a beep and a picture) pop-up during it at randomised ISI.
The experiment is meant for infants so I would like to be able to stop the experiment by pressing space bar when they stop paying attention or something happens etc and subsequently, restart the trial when I press the space bar again. Preferably a new pause screen should come up when I press the stop button. Much appreciate any help and/or example code to do this!
Please find attached a modification of something I coded previously.
If you press space during the trial, the trial will end and a pause trials starts. You can end the pause trial by pressing space again and the previous trial will be repeated.
Iām not so sure how to make your code work with my experiment. Iāve tried a couple of things but for starters I get ārepeatTrialLoopā not defined