how to add a break in the middle of self paced reading items


Author
Message
azizaltamimi
azizaltamimi
Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)Respected Member (478 reputation)
Group: Forum Members
Posts: 5, Visits: 84
Hello guys, 
 I managed to add a rest in my Lexical judgement task by running a different <trial> in a an assigned <block>. However, I am still struggling into how to modify the existing script for self paced reading, such that it would allow a rest break  after a particular item number. I would really appreciate if you can help me with this issue. 



<item mwstims>
/ 1 ="|FLYWHEELS

|Flywheels |are |one |of |the |oldest |mechanical |devices |known |to |man. |"

/ 2 = "|One |type |of |flywheel |consists |of |round |sandwiches |"
</item>


<text mwstims>
/ items = mwstims
</text>


**************************************************************************************************************
**************************************************************************************************************
LISTS
**************************************************************************************************************
**************************************************************************************************************

**************************************************************************************************************
List Elements (Item Selection)
Adapt as needed by modifying the settings in the '/ select' attribute.
**************************************************************************************************************
<list mwstims>
/ items = (1, 2)
/ selectionmode = sequence
</list>


TRIALS


<trial getstim>
/ ontrialbegin = [
if(list.mwstims.unselectedcount==0)
values.stopblock=1;

values.inputstring=getitem(text.mwstims, list.mwstims.nextvalue);
values.maskstring=values.inputstring;

list.uppercase.reset();
list.lowercase.reset();
expressions.maskuppercase;
expressions.masklowercase;
values.maskstringhl=values.maskstring;
expressions.maskuppercasehl;
expressions.masklowercasehl;

values.wincount=0;
values.winstart=0;
values.winend=0;
]
/ validresponse = (noresponse)
/ trialduration = 0
/ branch = [trial.MWtrial]
/ recorddata = false
</trial>


<trial MWtrial>
/ ontrialbegin = [expressions.movingwindow]
/ stimulusframes = [1=background, mywindow, mywindowhl]
/ validresponse = (57)
/ branch = [if(values.winend==expressions.inputend)trial.getstim else trial.MWtrial]
</trial>


BLOCKS

<block cumulative>
/ preinstructions = (cumulative)
/ onblockbegin = [
parameters.cumulative=true;
list.mwstims.reset();
]
/ stop = [values.stopblock==1]
/ trials = [1=getstim]
/ onblockend = [values.stopblock=0]
</block>

**************************************************************************************************************
Noncumulative Moving Window Condition
**************************************************************************************************************

<block noncumulative>
/ preinstructions = (noncumulative)
/ onblockbegin = [
parameters.cumulative=false;
list.mwstims.reset();
]
/ stop = [values.stopblock==1]
/ trials = [1=getstim]
/ onblockend = [values.stopblock=0]
</block>

**************************************************************************************************************
**************************************************************************************************************
EXPERIMENT
**************************************************************************************************************
**************************************************************************************************************

<expt MovingWindow>
/ preinstructions = (intro)
/ postinstructions = (end)
/ blocks = [1=cumulative; 2=noncumulative]
/onexptend = [values.completed = 1]
</expt>

**************************************************************************************************************
End of File


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Reading This Topic

Explore
Messages
Mentions
Search