Randomisation of several loops inside a main one // Exp. gets stuck when run in the browser
Hi,
I am building an online experiment in which I want to show several photos to the participants, these pictures should be randomise. The photos will be presented one by one and after each photo the subjects will be asked two questions.
The problem is that each photo (f1, f2, f3) needs its own loop (loop_f1, loop_f2 and loop_f3 in the screen shot below). This is due to inside of each loop there is a sequence (seq_f1, seq_f2, seq_f3) to control that the stimulus will be presented for at least 10s before allowing the subject to answer the questions. Moreover, inside this sequence there is another loop (question_loop_f1, question_loop_f2, question_loop_f3) that controls the randomisation of the two questions. So basically I do not know how to randomise loop_f1, loop_f2 and loop_f3.
My second problem is that, if I try to run this experiment on the external browser, it gets stuck in the first question without letting me provide any response or continue. Each question is placed on a sketchpad together with a Likert scale ranging from 1 to 9. The participants have to press the number keys to respond. This works fine when run on my computer, but does not accept any key response on the browser. It would be very helpful if someone could give me some advice!
Comments
I do not fully grasp your design but I feel like you are thinking to complicated. Why do you need a loop to control the 10s waiting? Is this different for each photo?
Hi,
Thanks for your response. The loop you refer to is needed for the randomisation of the two questions that follow the stimulus presented for 10s. I will try to explain it in a more clear way!
Each picture gets the same questions in a different order. I had no trouble solving that randomisation. However, my main problem now is regarding the order in which each photo is going to be presented. I have created loops (loop_f1, loop_f2, and loop_f3) for every photo where the image is presented and the questions are randomly asked. Once a loop has finished, the experiment moves to the next one for another photo. What I want to do is to randomise the order of the photos during the experiment, and I do not want to do it with subject parity. I want that randomisation individually for every subject. Is there any alternative way to do this rather than writing a code in javascript? I need it for OS Web so using Python is not an option.