Add questiosn after every four items in experiment loop
I have an open sesame project with one list with 40 items sequentially playing a row with no questions in between. Each participant needs to see all 40 items in that order. But participants loose focus when they do all 40 items in a row. We want to add questions after every 5-6 items but I cannot figure out how to do this in Open Sesame. How can I add in questions (click or keyboard press) after every 5 items?
I want it to move on auto matically after answering the question as it does for consent form or multiple choice form if possible.
**** I am very beginner for jatos and open sesame. Only created one project so far and used the same template to create others.
Thank you,
Priya
Comments
Hi @multanip,
If I understand correctly your description, you are using a single loop with 40 rows and present it sequentially (that is in the same fixed order for all participants, not in a random order),
There are several ways in which you can insert the question after a specific number of trials. The easiest way is to insert extra rows corresponding to the trials in which you want the question to show. You can a column coding for a variable you may call, for example, TrialType, and set it to "Trial" on all trials except those where you want the question to appear (you can set TrialType to "Question") on those.
You can insert into your sequence a sketchpad with your question (and anything else you may want to include with it, such as for example a keyboard event). Then you just have to use the "Run if" paramter of the sequence (see https://osdoc.cogsci.nl/4.0/manual/structure/sequence/) to indicate what events in the sequence should be presented on a typical trial and what objects should be presented on a Question trial.
The result will be that upon coming across a row where TrialType is equal to "Question"; only the objects related to the question would be presented.
There are alternative ways of doing this using some coding but the method above is the simplest and should work well in your case.
Here's the example described abovve. You should be able to use this method and adapt it to your task.
Hope this helps.
Fabrice.
Hello,
I tried this method and looked at the osexp file. I tried to copy the method from the file but its not working. Its giving error when it reaches the first question. Also, There is extra white space added after the video that was not there in the original version. I want so that the picture stays on for 10000ms after the audio finishes if the particiapnt does not answer. IF they answer, it moves on to the next audio picture but now if has extra white space after the audio finishes. I do not answer why.
I need the the picture audio to play and stay on for 10000ms after the audio ends and moves on or if answer is picked after the audio then moves to next item. Then after every five items or so a questions has to be answered, but I get error message when its turn for the question to appear.
I tried the Trial type == Trial or Questions for all or for some still get error message. I cant figure what I am doing wrong.
I would attach but the file is too big, so I think i will send in email with teh same heading as this forum.
THank you
I need an email address to send to.
Hi @multanip ,
If you want to share a large file, you can use a service such as WeTransfer, Google Drive, etc, and then post the link here.
— Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Can you please try this and see if it works. I have tried another format of this expriment. it is also not working.
Thank you
Hi @multanip,
Yes it works. However, I can't reupload it. Perhaps it makes sense to not include the wav files in the file pool, but have them in the same directory as your experiment? But that just at the side.
As I can't upload the experiment, here some screenshot what you need to do.
Step 1: Add a variable to your loop table with the trial number:
Step 2: Add whatever interrupting item you need to the loop, and set its run_if field to
trial_no % 5 == 0.Like so, you will make sure that that item occurs every 5th time (if you want every 6th times, you need to use 6 instead of 5)
Eduard