Background info:
I used the builder to create this experiment (Psychopy v2024.2.3). It runs fine locally, but I am having timing issues online. More specifically I have a loop that encompasses two routines, the first called “show_pairs”, and the second “rating_phase”.
It looks like this:
and this is my loop:
As you can see, show_pairs has a fixed timing of 4 seconds. This is the routine setup:
The code component there only saves the words shown to the output file, at the end of the routine.
The second routine asks participant to click on one of seven buttons (looks inelegant I know):
The code here again is just used to save data to the output.
Description of the problem:
When running online, show_pairs restarts automatically before rating_phase is complete. That means that, depending on how fast one clicks in the rating_phase, they go back to a different point in show_pairs (fixation is skipped, second word is already showing, or simply trial of show_pairs is already completed). Basically, show_pairs does not wait for rating_phase to be complete in order to restart. How can I fix this timing issue? The JS code is automatically translated from the builder as I don’t know how to code in JS, but I am happy to try any solution one might have.
Thanks in advance!