I am working on an edited version of a stop signal task an am trying to edit feedback such that the feedback screen at the end of the 4 separate blocks is different. Right not there is one general feedback screen that is assigned to all 4 trials, with time and % correct responses tailored for each block. I tried editing these two sections....
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
Practice (1 Block of 32 Trials)
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
<block pracblock>
/ onblockbegin = [values.trialnumber=0; values.blocknumber="PRACTICE"; values.countdown=values.waitbetweenblocks]
/ onblockend = [values.blocknumber=0; values.ssd=0; values.ssd_sum=0; values.ns_rtcorrsum=0; values.sr_rtsum=0;
values.sr_ntotal=0; values.ns_nmiss=0; values.ns_ncorr=0; values.ns_ntotal=0; values.ss_ncorr=0; values.ss_ntotal=0;
values.raw_rtsum=0; values.ns_nnoresp=0; values.ns_rtsum=0; values.ns_nresp=0]
/ onblockend = [if(values.resetpracticessd==true)values.ssd_next=values.ssd_start]
/ trials = [1=start; 2-33=noreplace(nstrial,nstrial,nstrial,sstrial); 34=blocksummary]
/ recorddata = false
</block>
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
Test (4 Blocks of 64 Trials)
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
<block testblock>
/ onblockbegin = [values.trialnumber=0; values.blocknumber+=1; values.countdown=values.waitbetweenblocks;
values.ns_nnoresp=0; values.ns_rtsum=0; values.ns_nresp=0]
/ trials = [1=start; 2-65=noreplace(nstrial,nstrial,nstrial,sstrial); 66=blocksummary]
/ recorddata = true
</block>
As well as the following section. Basically I tried to identify each of the four blocks separately and created a separate "block summary feedback" for each, but as i have not defined each block separately previously (in the beginning of the syntax perhaps?), it came back with error messages such as "trial start defined more than once" (at least I think this is the problem). Can anyone offer help on where I need to identify each block as separate in order to tailor the feedback sections? Thank you!
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
Block Summary Feedback
***********************************************************************************************************************************************************************
***********************************************************************************************************************************************************************
<trial blocksummary>
/ ontrialend = [values.countdown=values.countdown-1]
/ stimulusframes = [1=blocksummary]
/ validresponse = (noresponse)
/ trialduration = 1000
/ recorddata = false
/ branch = [if(values.countdown>0)trial.blocksummary]
</trial>
<text blocksummary>
/ items = ("RESULTS BLOCK <%values.blocknumber%>
Congratulations! Your average speed is <%expressions.ns_mrt%> ms!
You were correct on <%trial.sstrial.percentcorrect%>% of sound trials!
Great Job! Keep it up! Can you beat your last time?!
(seconds left to wait: <%values.countdown%>)")
/ size = (90%,90%)
/ erase = false
/ hjustify = left
/ vjustify = center
</text>
<trial start>
/ stimulusframes = [1=startmessage]
/ validresponse = (anyresponse)
/ recorddata = false
</trial>
<text startmessage>
/ items = startmessages
/ size = (50%,50%)
/ vjustify = center
/ select = sequence
/ resetinterval = 0
</text>
<item startmessages>
/ 1 = "Practice phase~n~nPress any key to start. "
/ 2 = "Test phase~n~nPress any key to start. "
/ 3 = "Press any key to start."
/ 4 = "Press any key to start."
</item>