Hi Dave,
Basically, if participants press the correct key to criterion (60% accuracy) at the end of one block, I want to start a different block where the first stimulus that has been learned to criterion is no longer there, but the stimuli remain, until they are also learned to criterion.
The issues I can't seem to resolve, and am hoping you can help with, are as follows:
1. The percentage of time that a participant presses the correct key for each stimulus is not displayed correctly on the feedback screen. It should get the value from the percentCorrect property, but that doesn't seem to be working.
2. How can I make it so that when one stimulus has been learned to criterion, the others remain until they are all learned?
3. Is there a better way to achieve what I'm trying to do? For example, is there a criterion function in Inquisit?
Below is the code that I have been working with.
<values>
/ num_a_correct = 0;
/ num_b_correct = 0;
</values>
<expt>
/ blocks = [1=block.start_block]
</expt>
<block start_block>
/ trials=[1-5=noreplace(trial.a_trial, trial.b_trial)]
/ branch=[if (trial.a_trial.percentCorrect >= 60) block.branch_block_a]
/ branch=[if (trial.b_trial.percentCorrect >= 60) block.branch_block_b]
</block>
<trial a_trial>
/ ontrialend = [
values.num_a_correct = trial.a_trial.percentCorrect
]
/ stimulusframes = [1=clearscreen, a_trial_stimulus]
/ inputdevice = keyboard
/ validresponse = ("a", "b")
/ correctresponse = ("a")
/ branch = [
{
trial.feedback_screen
}
]
</trial>
<text a_trial_stimulus>
/ items = ("Stimulus A")
/ hposition = 50%
</text>
<trial b_trial>
/ ontrialend = [
values.num_b_correct = trial.b_trial.percentCorrect
]
/ stimulusframes = [1=clearscreen, b_trial_stimulus]
/ inputdevice = keyboard
/ validresponse = ("a", "b")
/ correctresponse = ("b")
/ branch = [
{
trial.feedback_screen
}
]
</trial>
<text b_trial_stimulus>
/ items = ("Stimulus B")
/ hposition = 50%
</text>
<trial feedback_screen>
/ stimulustimes = [0=clearscreen; 50=feedback_screen; 100=num_a_correct; 150=num_b_correct]
/ timeout = 1500
</trial>
<text feedback_screen>
/ items = ("Feedback Screen")
/ fontstyle = ("Courier", 18pt, true)
/ color = blue
/ size = (80%, 20%)
/ position = (50%, 30%)
</text>
<text num_a_correct>
/ items = ("Percentage Stimulus A Correct: <%num_a_correct%>")
/ fontstyle = ("Courier", 18pt, true)
/ color = blue
/ size = (80%, 20%)
/ position = (50%, 40%)
</text>
<text num_b_correct>
/ items = ("Percentage Stimulus B Correct: <%num_b_correct%>")
/ fontstyle = ("Courier", 18pt, true)
/ color = blue
/ size = (80%, 20%)
/ position = (50%, 50%)
</text>
<block branch_block_a>
/ trials = [
1=noreplace(branch_block_trial_a)
]
</block>
<trial branch_block_trial_a>
/ stimulusframes = [
1=clearscreen, text.branch_block_text_a
]
/ validresponse = (" ")
</trial>
<text branch_block_text_a>
/ items = ("***** This is the Branch Block A *****
~n
Stimulus A has been learned to criterion")
/ fontstyle = ("Courier", 18pt, true)
/ color = red
/ size = (80%, 20%)
/ position = (50%, 50%)
</text>
<block branch_block_b>
/ trials = [
1=noreplace(branch_block_trial_a)
]
</block>
<trial branch_block_trial_b>
/ stimulusframes = [
1=clearscreen, text.branch_block_text_a
]
/ validresponse = (" ")
</trial>
<text branch_block_text_b>
/ items = ("***** This is the Branch Block B *****
~n
Stimulus B has been learned to criterion")
/ fontstyle = ("Courier", 18pt, true)
/ color = green
/ size = (80%, 20%)
/ position = (50%, 50%)
</text>
Thank you!