Stroop Color Task Changing the number of trials/congruency


Author
Message
Kathryn_Austin
Kathryn_Austin
Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)
Group: Forum Members
Posts: 3, Visits: 13
Hi there,

I am completely new to Inquisit and creating scripts. I am trying to set up set up different types of conditions for the Stroop with control keyboard.

First, I want to set up a condition where participants will complete 20 trials of a mix of incongruent and congruent stimuli. The second condition will be 300 trials of all congruent stimuli. The third will be 200 mixed stimuli. The fourth will be 300 mixed stimuli.

I know I have to make edits to the script in order to get these changes, but it's unclear to me what areas of the script to change. Should I change the "trials" section? Or do I change the "blocks" section? I've tried to dig through the forums to figure out what I need to do, but I am totally lost.

Any help would be much appreciated.

Thanks! -Katie
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Kathryn_Austin - Monday, October 22, 2018
Hi there,

I am completely new to Inquisit and creating scripts. I am trying to set up set up different types of conditions for the Stroop with control keyboard.

First, I want to set up a condition where participants will complete 20 trials of a mix of incongruent and congruent stimuli. The second condition will be 300 trials of all congruent stimuli. The third will be 200 mixed stimuli. The fourth will be 300 mixed stimuli.

I know I have to make edits to the script in order to get these changes, but it's unclear to me what areas of the script to change. Should I change the "trials" section? Or do I change the "blocks" section? I've tried to dig through the forums to figure out what I need to do, but I am totally lost.

Any help would be much appreciated.

Thanks! -Katie

Blocks are the elements that actually "run trials" -- they determine how many trials there will be in a given block of trials, how many of which type etc. So the existing blocks are what you'd look at to make your modifications and/or you'd add further blocks as needed. You'll end up with one <block> for your 20 congruent / incongruent trials, one <block> with 300 congruent trials, and another one with 200 congruent & incongruent (mixed) trials, and so forth.

In order to understand how scripts are structured generally and get to know the most important syntax elements, the tutorials are a good start: https://www.millisecond.com/support/docs/v5/html/tutorials/tutorials.htm

Working through those first will make it easier to read and modify existing scripts according to your needs.

Kathryn_Austin
Kathryn_Austin
Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)
Group: Forum Members
Posts: 3, Visits: 13
Dave - Monday, October 22, 2018
Kathryn_Austin - Monday, October 22, 2018
Hi there,

I am completely new to Inquisit and creating scripts. I am trying to set up set up different types of conditions for the Stroop with control keyboard.

First, I want to set up a condition where participants will complete 20 trials of a mix of incongruent and congruent stimuli. The second condition will be 300 trials of all congruent stimuli. The third will be 200 mixed stimuli. The fourth will be 300 mixed stimuli.

I know I have to make edits to the script in order to get these changes, but it's unclear to me what areas of the script to change. Should I change the "trials" section? Or do I change the "blocks" section? I've tried to dig through the forums to figure out what I need to do, but I am totally lost.

Any help would be much appreciated.

Thanks! -Katie

Blocks are the elements that actually "run trials" -- they determine how many trials there will be in a given block of trials, how many of which type etc. So the existing blocks are what you'd look at to make your modifications and/or you'd add further blocks as needed. You'll end up with one <block> for your 20 congruent / incongruent trials, one <block> with 300 congruent trials, and another one with 200 congruent & incongruent (mixed) trials, and so forth.

In order to understand how scripts are structured generally and get to know the most important syntax elements, the tutorials are a good start: https://www.millisecond.com/support/docs/v5/html/tutorials/tutorials.htm

Working through those first will make it easier to read and modify existing scripts according to your needs.

Hi there,

In going through the tutorials, I definitely think I have a better understanding of how I can edit the blocks and trials. So I will actually make edits to the "block" section of the stroopwithcontrolkeyboard. So would my blocks look like this?

<block stroop20>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-20 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------------
<block stroop300C>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, greencongruent, bluecongruent, blackcongruent)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
-----------------------
<block stroop200>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-200 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------

<block stroop300>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>


Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
Kathryn_Austin - Tuesday, October 23, 2018
Dave - Monday, October 22, 2018
Kathryn_Austin - Monday, October 22, 2018
Hi there,

I am completely new to Inquisit and creating scripts. I am trying to set up set up different types of conditions for the Stroop with control keyboard.

First, I want to set up a condition where participants will complete 20 trials of a mix of incongruent and congruent stimuli. The second condition will be 300 trials of all congruent stimuli. The third will be 200 mixed stimuli. The fourth will be 300 mixed stimuli.

I know I have to make edits to the script in order to get these changes, but it's unclear to me what areas of the script to change. Should I change the "trials" section? Or do I change the "blocks" section? I've tried to dig through the forums to figure out what I need to do, but I am totally lost.

Any help would be much appreciated.

Thanks! -Katie

Blocks are the elements that actually "run trials" -- they determine how many trials there will be in a given block of trials, how many of which type etc. So the existing blocks are what you'd look at to make your modifications and/or you'd add further blocks as needed. You'll end up with one <block> for your 20 congruent / incongruent trials, one <block> with 300 congruent trials, and another one with 200 congruent & incongruent (mixed) trials, and so forth.

In order to understand how scripts are structured generally and get to know the most important syntax elements, the tutorials are a good start: https://www.millisecond.com/support/docs/v5/html/tutorials/tutorials.htm

Working through those first will make it easier to read and modify existing scripts according to your needs.

Hi there,

In going through the tutorials, I definitely think I have a better understanding of how I can edit the blocks and trials. So I will actually make edits to the "block" section of the stroopwithcontrolkeyboard. So would my blocks look like this?

<block stroop20>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-20 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------------
<block stroop300C>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, greencongruent, bluecongruent, blackcongruent)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
-----------------------
<block stroop200>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-200 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------

<block stroop300>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>


Yes, that's what they *could* look like, but note that not all trials will be run an equal amount of time in some cases. E.g. in

<block stroop20>
...
/ trials = [1=getReady; 2-20 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>

you are running 19 stroop trials (2-20 = noreplace(...)), and you're sampling from a total of 12 trial objects. It's not possible to run each one equally often with only 19 trials. To run each trial twice, you'd need to run 24 stroop trials. The same applies to the longer blocks, but whether this is problematic for your particular purposes or whether such imbalances are okay is up to you to decide.

Kathryn_Austin
Kathryn_Austin
Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)Associate Member (194 reputation)
Group: Forum Members
Posts: 3, Visits: 13
Dave - Tuesday, October 23, 2018
Kathryn_Austin - Tuesday, October 23, 2018
Dave - Monday, October 22, 2018
Kathryn_Austin - Monday, October 22, 2018
Hi there,

I am completely new to Inquisit and creating scripts. I am trying to set up set up different types of conditions for the Stroop with control keyboard.

First, I want to set up a condition where participants will complete 20 trials of a mix of incongruent and congruent stimuli. The second condition will be 300 trials of all congruent stimuli. The third will be 200 mixed stimuli. The fourth will be 300 mixed stimuli.

I know I have to make edits to the script in order to get these changes, but it's unclear to me what areas of the script to change. Should I change the "trials" section? Or do I change the "blocks" section? I've tried to dig through the forums to figure out what I need to do, but I am totally lost.

Any help would be much appreciated.

Thanks! -Katie

Blocks are the elements that actually "run trials" -- they determine how many trials there will be in a given block of trials, how many of which type etc. So the existing blocks are what you'd look at to make your modifications and/or you'd add further blocks as needed. You'll end up with one <block> for your 20 congruent / incongruent trials, one <block> with 300 congruent trials, and another one with 200 congruent & incongruent (mixed) trials, and so forth.

In order to understand how scripts are structured generally and get to know the most important syntax elements, the tutorials are a good start: https://www.millisecond.com/support/docs/v5/html/tutorials/tutorials.htm

Working through those first will make it easier to read and modify existing scripts according to your needs.

Hi there,

In going through the tutorials, I definitely think I have a better understanding of how I can edit the blocks and trials. So I will actually make edits to the "block" section of the stroopwithcontrolkeyboard. So would my blocks look like this?

<block stroop20>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-20 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------------
<block stroop300C>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, greencongruent, bluecongruent, blackcongruent)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
-----------------------
<block stroop200>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-200 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>
---------------------

<block stroop300>
/preinstructions = (stroop)
/ onblockbegin = [
list.latencies.reset();
list.latencies_congruent.reset();
list.latencies_control.reset();
list.latencies_incongruent.reset();
list.responses.reset();
list.responses_congruent.reset();
list.responses_control.reset();
list.responses_incongruent.reset();
]
/ trials = [1=getReady; 2-300 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>


<block Instructions>
/ trials = [1 = touchscreenInstruct]
</block>


Yes, that's what they *could* look like, but note that not all trials will be run an equal amount of time in some cases. E.g. in

<block stroop20>
...
/ trials = [1=getReady; 2-20 =noreplace(redcongruent, redincongruent, redcontrol, greencongruent, greenincongruent, greencontrol, bluecongruent, blueincongruent, bluecontrol, blackcongruent, blackincongruent, blackcontrol)]
</block>

you are running 19 stroop trials (2-20 = noreplace(...)), and you're sampling from a total of 12 trial objects. It's not possible to run each one equally often with only 19 trials. To run each trial twice, you'd need to run 24 stroop trials. The same applies to the longer blocks, but whether this is problematic for your particular purposes or whether such imbalances are okay is up to you to decide.

Thank you so much! This is very helpful!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search