Millisecond Forums

Using the clock

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

By GeeP - 4/17/2015

Hi All,

For the study I am designing, participants will be given a break between 2 parts of the experiment for about 1 to 2 minutes. After part 1, the break should start automatically and after 1 or 2 minutes the second part should begin. I thought of using the clock/timer attribute to show participants how much of break time they have but I have never used this and wanted to check if anyone has a simple script to share as an example.

Thank you,
-G
By Dave - 4/17/2015

The <clock> element works like any other stimulus element (<text>, <picture>, <video>). Set it up and configure it according to your needs and have a <trial> display it.

<expt>
/ blocks = [1=a; 2=break; 3=b]
</expt>

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

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

<trial mytrial>
/ stimulusframes = [1=mytext]
/ validresponse = (57)
</trial>

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

<block break>
/ trials = [1=breaktrial]
</block>

<trial breaktrial>
/ stimulusframes = [1=breaktext, myclock]
/ validresponse = (0)
/ trialduration = 10000
</trial>

<text breaktext>
/ items = ("Take a break!")
/ position = (50%, 40%)
</text>

<clock myclock>
/ mode = timer
/ timeout = 10000
</clock>

By GeeP - 4/17/2015

Thank you so much!