By Jin - 10/19/2016
Hi all,
I am trying to have the text "please press the space bar when you're ready" appear after a 10 second delay on a screen that already has a question on it. I'm not sure if I should create two separate trials to, or if there's a way for it to appear on the screen?
I look forward to your responses!
Thank you, Chu
<trial Ftr_ab> / branch = [trial.wait] / stimulustimes = [0=ftr_ab;1=PSA] / responseinterrupt = immediate / validresponse = (57) / inputdevice = keyboard / pretrialpause = 250 / posttrialpause = 250 </trial>
<text PSA> / items = PSA / hjustify = center / vjustify = center / fontstyle = ("Arial", 2%, true) / size = (50%, 40%) / position = (50%, 85%) / select = noreplace / resetinterval = 0 / txcolor = white / txbgcolor = black </text>
<text Ftr_AB> / items = Ftr_AB / hjustify = center / vjustify = center / fontstyle = ("Arial", 8%, true) / size = (90%, 80%) / position = (50%, 50%) / select = noreplace / resetinterval = 0 / txcolor = white / txbgcolor = black </text>
|
By Dave - 10/19/2016
The <trial>'s /stimulustimes attribute dictates when stimuli should appear. If you want a stimulus appear at 10 seconds into the trial (i.e., 10000ms), you specify:
<trial sometrial> / stimulustimes = [0=...; 10000=the_text_element_you_want_to_display] ... </trial>
If, additionally, you want the trial to accept responses *prior* to the appearance of that text stimulus at 10s seconds, you can specify that via /beginresponsetime.
<trial sometrial> / stimulustimes = [0=...; 10000=the_text_element_you_want_to_display] ... / beginresponsetime = 0 .... </trial>
To illustrate:
<trial sometrial> / stimulustimes = [0=a,b; 10000=spacebar] / beginresponsetime = 0 / validresponse = (57) </trial>
<text a> / items = ("some text...") / position = (50%, 50%) </text>
<text b> / items = ("some other text...") / position = (50%, 55%) </text>
<text spacebar> / items = ("Press the spacebar when you are ready.") / position = (50%, 90%) </text>
|
|