The content of my experiment was to watch three videos (1,2,3) in random order, and then fill in two questionnaires in random order after each video: Questionnaire A and Questionnaire B (both questionnaires need to be filled, but the order is different). In other words, my experiment is A big random condition nested with small random conditions, and in each run, the order I want to achieve is 2+A+B; 3+B+A; 1+A+B and so on. My workflow is below.
I have verified that the sequence of video presentation is indeed random when the program runs each time, but the order of the questionnaire is a little troublesome. The order of the questionnaire is fixed in the order of three cycles in a single experiment, but the order of each run is random. For example, in my first run the order was AB; AB; AB. When I shut it down and run it again, it might be BA again; BA; BA.
Is there a way to randomize the order of the questionnaires in a single experiment? If AB can appear in an experiment; BA; AB, etc., if possible, I would appreciate it
Hello
What are condsFile1 and condsFile2? What is $SheetRowIndex?
It should be possible to use only one routine and one for presenting the questionaries in random order, see example
Questions.xlsx (17.9 KB)
TwoQuestionaries.psyexp (15.9 KB)
Videos.xlsx (17.9 KB)
Best wishes Jens
Thank you for your reply
I created two tables to display the questions for my two questionnaires (temp.xlsx and temp2.xlsx) and associated them with âTwo_questionares.xlsxâ. In each trial, although the order of questionnaires presented was random, since each questionnaire only needed to appear once, â$sheetRowIndexâ was added with a code in front to make it effective.
in fact, Iâve tried using one for presenting the questionaries in random. However, the outer loop can only decide to open âtempâ or âtemp2â this time, and the variable index of my Text is â$questionTextâ, which results in an error because the variables cannot be retrieved even if the random order is selected. NameError: name âquestionTextâ is not defined.
Here are some additional pictures.
Hello
Try the following toy example. There is an inner loop called trials which is set to sequential. The condition file of this loop is set by the variable condsFile. In the trials loop, two statements are presented that are read from the condFiles variable questionText. In the outer loop block the variable condsFile is read from the condition file Two_Questionaires.xlsx. The block loop is set to random. This results in random presentation of the condition files that represent the questionnaires.
Temp1.xlsx (17.9 KB)
Temp2.xlsx (17.9 KB)
Two_Questionaires.xlsx (17.9 KB)
TwoQuestionaries.psyexp (15.9 KB)
Best wishes Jens
2 Likes
Hello
Thanks for your reply and advice, I saw it immediately and adjusted quickly. Just tried the experiment, and this time it worked! I really appreciate you very much, I think I just made a little mistake in logic, but it really bothered me for two days until I get helped.
That helps a lot. Thanksďź