Millisecond Forums

specific trial sequence

https://forums.millisecond.com/Topic17034.aspx

By SimonaH. - 8/31/2015

Hi,
I would like to ask how can it be programmed that a certain trial is always followed by another specific trial? or is it possible to embed two subsequent "tasks" into one "trial", requiring two response "sets" at different points in time?

The context of my question is following: I am running a categorisation task in one block and a categorisation task followed by evaluation task in the second block. In the second block, every categorisation trial (response1) is supposed to be followed by a specific evaluation trial (response 2) - of course, the categorisation trials are composed of different factors determining the responses (e.g. different locations of displayed pictures in a particular context determine the correctness of answers) and therefore need to be followed by a specific evaluation trials in order to be able to identify the impact of different factors on evaluations. The presentation of the various categorisation trials is also counterbalanced at the trial and also at the block level and randomised.

Here is an example:
categorisation trials

<trial congruent_xy_ab>
/ validresponse = ("a", "l")
/ correctresponse = ("a")
/ stimulustimes = [500=fixation_cross; 1100=pic_center; 2600=pic_xy; 3100=ab_xy_congruent]
/ response =timeout(2500)
</trial>

<trial incongruent_yz_ab>
/ validresponse = ("a", "l")
/ correctresponse = ("l")
/ stimulustimes = [500=fixation_cross; 1100=pic_center; 2600=pic_yz; 3100=ab_yz_incongruent]
/ response =timeout(2500)
</trial>
...

evaluation trial
<trial eval_congruent_left_kitchen>
/ validresponse = ("1", "2", "3", "4", "5", "6", "7", "8")
/ stimulustimes = [500=blankscreen; 1000 = evaluation]
</trial>
...
Categorisation block

<block categorisation>
/ preinstructions = (intro_phase_1)
/ trials = [1-130 = noreplace(congruent_xy_ab, congruent_yz_ab,  incongruent_ ....)]
/ errormessage = (errormessage, 300)
</block>

evaluation block? 

thanks for your time!
By Dave - 8/31/2015

From your "categorisation" trials /branch to the applicable "evaluation" trials in the 2nd block. How the logic should look exactly is impossible to determine based on the information provided, hence I can only provide a hint:

<trial congruent_xy_ab>
...
/ branch = [ if (script.currentblock == "evaluation" && ... remaining condition goes here ...) ... trial to branch to goes here ...]
...
</trial>