Group: Administrators
Posts: 13K,
Visits: 105K
|
Here's a quick example to illustrate:
<expt> / preinstructions = (intropage) / postinstructions = (endpage) / blocks = [1=consentblock; 2=taskblock] </expt>
<instruct> / finishlabel = ("NEXT>>") / windowsize = (90%, 80%) </instruct>
<htmlpage intropage> / file = "intro.htm" </htmlpage>
<htmlpage endpage> / file = "end.htm" </htmlpage>
<block consentblock> / trials = [1=consenttrial] </block>
<block taskblock> / skip = [trial.consenttrial.response=="decline"] / trials = [1-10=tasktrial] </block>
<html consentpage> / items = ("consent.htm") / size = (90%, 80%) </html>
<trial consenttrial> / stimulusframes = [1=consentpage, accept, decline] / inputdevice = mouse / validresponse = (accept, decline) </trial>
<text accept> / items = ("ACCEPT") / position = (45%, 95%) / txbgcolor = grey </text>
<text decline> / items = ("DECLINE") / position = (55%, 95%) / txbgcolor = grey </text>
<trial tasktrial> / posttrialpause = 500 / stimulusframes = [1=stimulus] / validresponse = (57) </trial>
<text stimulus> / items = ("Press the spacebar as quickly as possible.") </text>
|