up Inquisit Language Reference

resetRate property

The frequency with which a clock in stopwatch or timer mode is reset.

Member of

<clock>

Syntax

clock.name.resetRate

Read/Write

Type

integer

Remarks

This property determines whether a clock in stopwatch or timer mode is reset after each trial, block, or experiment. It has no effect for the visible part of the clock while in clock mode, although it will affect the value of the elapsedTime property.

The value of refreshRate can either be '2' (experiment), '1' (block) or '3' (trial).

Examples

The following displays the value of resetRate in a text stimulus.

<text myText>
/ items= ("resetRate = <% clock.surveyTimer.resetRate %>")
</text>

The following displays the value of resetRate in an instruction page:

<page myPage>
resetrate = <% clock.sorttask.resetRate %>
</page>

This code example shows how to change the resetRate of a clock from 'trial' to 'block'. Instead of having 5s for each of the problems, participants will now have 5s for the entire block.

<clock timer>
/ mode = timer
/ timeout = 5000
/ resetRate = trial //timer.resetRate = 3
</clock>

<block changeTimer>
/ onBlockBegin = {
  clock.timer.resetRate = 1; //resetRate is set to ‘block’ at this point
}
/ trials = [1-10 = solveProblem]
/timeout = clock.timer.timeout
</block>

Copyright Millisecond Software, LLC. All rights reserved.