Millisecond Forums

cumulative responses + random with no same consecutive colours

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

By tecnika - 5/25/2017

Hello,

I have a problem with this modified version of the emotional stroop task that I have found in the library.

I am using cedrus response box. But if I press the response box twice it's like I am responding to two trials and it's quickly going to the third one. Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?
Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Thank you

Elena
By Dave - 5/25/2017

ebroggin - Thursday, May 25, 2017
Hello,

I have a problem with this modified version of the emotional stroop task that I have found in the library.

I am using cedrus response box. But if I press the response box twice it's like I am responding to two trials and it's quickly going to the third one. Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?
Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Thank you

Elena

> Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?

Try explicitly specifying when Inquisit should start accepting responses via /beginresponsetime in your <trial> elements. E.g.

<trial Combat>
/ inputdevice = XID
/ontrialbegin = [trial.Combat.insertstimulustime(text.Combat, values.fixationcrosspresentationtime)]
/ beginresponsetime =  values.fixationcrosspresentationtime
/stimulustimes = [0=fixation, redreminder, greenreminder, bluereminder, yellowreminder]
/ isvalidresponse = [trial.Combat.response == values.keyyellow || trial.Combat.response == values.keyred ||
                        trial.Combat.response == values.keyblue || trial.Combat.response == values.keygreen]

/iscorrectresponse = [        (text.Combat.textcolor == yellow && trial.Combat.response == values.keyyellow) ||
                            (text.Combat.textcolor == red && trial.Combat.response == values.keyred) ||
                            (text.Combat.textcolor == blue && trial.Combat.response == values.keyblue) ||
                            (text.Combat.textcolor == green && trial.Combat.response == values.keygreen)]
/ontrialend = [trial.Combat.resetstimulusframes()]
/ontrialend = [values.target = text.Combat.currentitem]
/ontrialend = [if (text.Combat.textcolor == yellow) values.color = "yellow"
                else if (text.Combat.textcolor == red) values.color = "red"
                else if (text.Combat.textcolor == blue) values.color = "blue"
                else values.color = "green"]
/ontrialend = [if (trial.Combat.correct) {values.correct_Combat += 1; values.sumrt_combat += trial.Combat.latency}]
/ errormessage = true(x, 400)
</trial>

> Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Give the way how the script / color selection is set up: No, I don't see a way to do that.
By tecnika - 5/25/2017

Dave - Thursday, May 25, 2017
ebroggin - Thursday, May 25, 2017
Hello,

I have a problem with this modified version of the emotional stroop task that I have found in the library.

I am using cedrus response box. But if I press the response box twice it's like I am responding to two trials and it's quickly going to the third one. Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?
Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Thank you

Elena

> Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?

Try explicitly specifying when Inquisit should start accepting responses via /beginresponsetime in your <trial> elements. E.g.

<trial Combat>
/ inputdevice = XID
/ontrialbegin = [trial.Combat.insertstimulustime(text.Combat, values.fixationcrosspresentationtime)]
/ beginresponsetime =  values.fixationcrosspresentationtime
/stimulustimes = [0=fixation, redreminder, greenreminder, bluereminder, yellowreminder]
/ isvalidresponse = [trial.Combat.response == values.keyyellow || trial.Combat.response == values.keyred ||
                        trial.Combat.response == values.keyblue || trial.Combat.response == values.keygreen]

/iscorrectresponse = [        (text.Combat.textcolor == yellow && trial.Combat.response == values.keyyellow) ||
                            (text.Combat.textcolor == red && trial.Combat.response == values.keyred) ||
                            (text.Combat.textcolor == blue && trial.Combat.response == values.keyblue) ||
                            (text.Combat.textcolor == green && trial.Combat.response == values.keygreen)]
/ontrialend = [trial.Combat.resetstimulusframes()]
/ontrialend = [values.target = text.Combat.currentitem]
/ontrialend = [if (text.Combat.textcolor == yellow) values.color = "yellow"
                else if (text.Combat.textcolor == red) values.color = "red"
                else if (text.Combat.textcolor == blue) values.color = "blue"
                else values.color = "green"]
/ontrialend = [if (trial.Combat.correct) {values.correct_Combat += 1; values.sumrt_combat += trial.Combat.latency}]
/ errormessage = true(x, 400)
</trial>

> Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Give the way how the script / color selection is set up: No, I don't see a way to do that.

Hello,

Thank you for your quick reply!
I have tried to do what you suggested, but still, if I press the key three times in the first trial, the second and the third trials stop quickly (as they already had a response from the previous trial)...

Elena
By Dave - 5/25/2017

ebroggin - Friday, May 26, 2017
Dave - Thursday, May 25, 2017
ebroggin - Thursday, May 25, 2017
Hello,

I have a problem with this modified version of the emotional stroop task that I have found in the library.

I am using cedrus response box. But if I press the response box twice it's like I am responding to two trials and it's quickly going to the third one. Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?
Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Thank you

Elena

> Is it possible to consider the response only when the participant respond to the correspondent stimulus onset?

Try explicitly specifying when Inquisit should start accepting responses via /beginresponsetime in your <trial> elements. E.g.

<trial Combat>
/ inputdevice = XID
/ontrialbegin = [trial.Combat.insertstimulustime(text.Combat, values.fixationcrosspresentationtime)]
/ beginresponsetime =  values.fixationcrosspresentationtime
/stimulustimes = [0=fixation, redreminder, greenreminder, bluereminder, yellowreminder]
/ isvalidresponse = [trial.Combat.response == values.keyyellow || trial.Combat.response == values.keyred ||
                        trial.Combat.response == values.keyblue || trial.Combat.response == values.keygreen]

/iscorrectresponse = [        (text.Combat.textcolor == yellow && trial.Combat.response == values.keyyellow) ||
                            (text.Combat.textcolor == red && trial.Combat.response == values.keyred) ||
                            (text.Combat.textcolor == blue && trial.Combat.response == values.keyblue) ||
                            (text.Combat.textcolor == green && trial.Combat.response == values.keygreen)]
/ontrialend = [trial.Combat.resetstimulusframes()]
/ontrialend = [values.target = text.Combat.currentitem]
/ontrialend = [if (text.Combat.textcolor == yellow) values.color = "yellow"
                else if (text.Combat.textcolor == red) values.color = "red"
                else if (text.Combat.textcolor == blue) values.color = "blue"
                else values.color = "green"]
/ontrialend = [if (trial.Combat.correct) {values.correct_Combat += 1; values.sumrt_combat += trial.Combat.latency}]
/ errormessage = true(x, 400)
</trial>

> Another thing: is it possible to randomise the colour of the words in a way that no colour will be repeated consecutively twice?

Give the way how the script / color selection is set up: No, I don't see a way to do that.

Hello,

Thank you for your quick reply!
I have tried to do what you suggested, but still, if I press the key three times in the first trial, the second and the third trials stop quickly (as they already had a response from the previous trial)...

Elena

Can you post a raw data file showing that? Particularly the response columns and latencies recorded for those 3 trials would be of interest.