Using the clock


Author
Message
GeeP
GeeP
Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)
Group: Forum Members
Posts: 81, Visits: 118
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
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 104K
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>


GeeP
GeeP
Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)Guru (8.7K reputation)
Group: Forum Members
Posts: 81, Visits: 118
Thank you so much!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search