-
Hi everyone! I am trying to build an experiment using nested timelines. Unfortunately, the order of the experimental trials is a bit complicated, so I am having trouble creating the timelines. In my experiment, there are 2 trial blocks. Block A consists of the following timelines: resetCounterTrial, randomizeNatural, instructionsNatural, and trialsNatural. Block B consists of these timelines: resetCounterTrial, randomizeHealthy, instructionsHealthy, and trialsHealthy. I would like my experiment to run Block A once, followed by Block B. Then, I would like to run Blocks A and B each 7 more times in random order (e.g., Block B, Block A, Block A, Block B, Block A, Block B, Block B, etc.). So, the first run of my experiment contains Block A followed by Block B. The other 7 runs of my experiment each contain Blocks A and B, but the order of the blocks is randomized. I am having trouble creating a nested timeline to model the above trial order. What makes things especially hard is that Blocks A and B both use dynamic parameters, so (if I understand jsPsych correctly) I cannot simply create an array of blocks before the experiment starts and then run the blocks as timeline variables using jsPsych.timelineVariable. If you have any suggestions as to how I could code the above trial order, would you please share them here? Here is a copy of the relevant part of my code for reference:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update: I figured it out!
|
Beta Was this translation helpful? Give feedback.
Update: I figured it out!