OS (e.g. Win10): Win10 PsychoPy version (e.g. 1.84.x): 1.85.2 Standard Standalone? (y/n) yes What are you trying to achieve?:
Hi,
I am making self-paced reading task. I want to make participants read sentences (e.g. Judy met Tom last Saturday) and with a 20% chance, I want them to solve probe question (e.g. Did Judy meet Tom last Saturday?) with yes or no answer. I made two different routine, one for reading sentences, and another for this questions. Sentences and their relevant probe questions are all stored in one EXCEL file but two different routines recruit two different columns with sentences and probe questions respectively. I made everything else go well but the current design makes participant meet this probe question 100% of the trials.
Long story short, I want to make that ātrial1ā routine to go to āprobe1ā routine 20% of the time participants solve it. For 80% of the time, I want them to skip the āprobe1ā and go to ācross1ā routine which shows them fixation cross.
I adopted this and it doesnāt work properly. What I found out was that most of the time, the fixation cross ācrossā disappears from every trial and there is probe appearing every trial. I think this random number defined at the initial trial is somehow fixed. And it is fixed higher than 0.8 everytime. Below is the āoptionā column of the data after I ran a few trials.
I already have code component in the ātrial1ā routine. Its āBegin Routineā and āEach Frameā tab is filled with some codes but there was nothing in the āEnd Routineā tab before I put this code in. I donāt think they interacted each other. I also tried creating an additional code component with only āEnd Routineā filled with your code so that there will be two separate code component in the ātrial1ā routine. But this did not change anything. I donāt think there is a problem with codes in other routines (āprobe1ā or ācross1ā). Why would the random number not change? And why is it fixed to probe all the time? I wonderā¦
Just in case that it is something to do with loop, I attached this capture. It shows how I set the parameters in the loop.
Sorry, I typed that post on an iPad which was a bit laborious, and there was a typo in the code (now amended). In particular note that if random should have been if random()