Replies: 1 comment 1 reply
-
Hi @mbeasle2, This is a tricky use case for jsPsych. It's definitely possible, but there's no obvious implementation given the way that jsPsych experiments are structured. One option would be to create a new plugin to handle this. In the plugin code you'd have full control over the display and you could basically build both tasks within the plugin. If I were building this I'd probably focus on the primary task, e.g., solving the math problem and design the plugin so that one trial is one math problem. To handle the secondary task, I'd probably add parameters like A second option might be to build an extension. The extension would handle the secondary task, and then this could be layered on top of any plugin. I think this could also have its own internal state to keep track of the timing. This is probably the better way to do it, but there is less documentation for extension writing out there. A third option would be to implement everything inside the |
Beta Was this translation helpful? Give feedback.
-
I'm looking to design an experiment where there are essentially two independent tasks running at the same time and a participant will need to multi-task. I found jsPsych and I am learning, but I didn't want to get too far unless I knew this was possible, so forgive me if this is a repeat question; I did a check and found something kind of similar, but not quite answering my question.
My participants will be doing something, let's say, they'll be typing in responses to math questions. Each time they hit 'enter' and new math question will appear. Correct answers give points based on how quickly they answer.
While they're doing this, every 15-45s, I need another stimulus to appear on screen. When it appears, they will make another key response (say, 'space') and make it go away. If they do not press in time, they lose points.
My biggest concern is how I would code each of these variables to be presented simultaneously, so that perhaps they take a long time on one math question and must respond to the stimulus several times during one math trial, but then during another math trial they may be so quick that they will not need to respond at all.
Thank you so much!
Beta Was this translation helpful? Give feedback.
All reactions