Millisecond Forums

variable inter-trial interval

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

By charlottebooth - 1/19/2015

Hello,

I want to make the inter-trial interval vary between 500ms and 1000ms. At the moment I have:

<defaults>
/ posttrialpause = 500
</defaults>

And <defaults>
/posttrialpause = 500-1000

Does not work.

Is there a different symbol to use?

Many thanks,

Charlotte

By Dave - 1/19/2015

That's not how the /posttrialpause attribute works. To have a random ITI you ought to do something along the lines of:

<expressions>
/ randomiti = round(rand(500,1000))
</expressions>

<trial mytrial>
/ posttrialpause = expressions.randomiti
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

<text mytext>
/ items = ("Press the spacebar.")
</text>

<block myblock>
/ trials = [1-10=mytrial]
</block>