Millisecond Forums

Background instructions

https://forums.millisecond.com/Topic14832.aspx

By Zooahh - 11/3/2014

Hi,

I would like some instruction sentences to constantly appear at the bottom edges of the screen during the whole duration of the task.
I have been using the bg attribute as follows up to now:

<block testblock>
/ preinstructions = (test)
/ trials = [1-80=noreplace(congruenttrial,incongruenttrial)]
/ bgstim = (leftinstruct, rightinstruct)
</block>

<text leftinstruct>
/ items = ("Z = UP")
/ hposition = 15
/ vposition = 95
/ fontstyle = ("Verdana", 2.00%, true)
</text>

<text rightinstruct>
/ items= ("M = DOWN")
/ hposition = 85
/ vposition = 95
/ fontstyle = ("Verdana", 2.00%, true)
</text>

<trial congruenttrial>
/ ontrialbegin = [if(script.currentblock=="practiceblock")
{
values.stimtype=counter.pcongruentstimtype.selectedvalue;
values.cresp=counter.pcongruentcresp.selectedvalue;
}
else
{
values.stimtype=counter.congruentstimtype.selectedvalue;
values.cresp=counter.congruentcresp.selectedvalue;
}]
/ posttrialpause = 500
/ stimulustimes = [0=fixation, leftinstruct,rightinstruct;500=blank, leftinstruct,rightinstruct; 1050=stimulus, leftinstruct, rightinstruct]
/ trialduration = 2600
/ responsetime = 1050
/ validresponse = (44,50)
/ iscorrectresponse = [trial.congruenttrial.response==values.cresp]
</trial>

<trial incongruenttrial>
/ ontrialbegin = [if(script.currentblock=="practiceblock")
{
values.stimtype=counter.pincongruentstimtype.selectedvalue;
values.cresp=counter.pincongruentcresp.selectedvalue;
}
else
{
values.stimtype=counter.incongruentstimtype.selectedvalue;
values.cresp=counter.incongruentcresp.selectedvalue;
}]
/ posttrialpause = 500
/ stimulustimes = [0=fixation, leftinstruct,rightinstruct; 500=blank, leftinstruct,rightinstruct; 1050=stimulus, leftinstruct, rightinstruct]
/ trialduration = 2600
/ responsetime = 1050
/ validresponse = (44,50)
/ iscorrectresponse = [trial.incongruenttrial.response==values.cresp]
</trial>

The problem is that between each trial these instructions disappear and I would like them to remain on the screen all the time (I don't want them just flashing during the trials).
When I put a bgattribute in the block element, the background stimuli only appear at the beginning of the block. That is why also put:
       / stimulustimes = [0=fixation, leftinstruct,rightinstruct; 500=blank, leftinstruct,rightinstruct; 1050=stimulus, leftinstruct, rightinstruct]

Thank you for your help!
By Dave - 11/3/2014

Anything in /bgstim is drawn to the screen exactly once at the very beginning of the <block>. If any stimulus displayed by the <trial> elements in that <block> overwrites (part of) the background stims, they'll be gone. You need to make sure that doesn't happen by sizing and positioning the stimuli in your trial's accordingly.

If you alternatively want to display those persistent instructions via your your <trial>s, make sure to set their /erase attributes to false.


By Zooahh - 11/5/2014

Thanks!