up Inquisit Language Reference

firstCharLatency property

The response latency for the first character typed into the textbox.

Member of

<openended>

Syntax

openended.name.firstCharLatency

Read Only

Type

integer

Remarks

None.

Examples

The following displays the value of firstCharLatency in a text stimulus:

<text myText>
/ items= ("firstCharLatency = <% trial.myTrial.firstCharLatency %>")
</text>

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

<page myPage>
firstcharlatency = <% trial.myTrial.firstCharLatency %>
</page>

The following code shows how to use 'firstCharLatency' (as well as 'lastCharLatency') to calculate the timings of different response stages during an openended trial (Note: 'this' represents 'openended.decision' in this context).

<openended decision>
/ ontrialEnd = {
  values.respInitiationTime = this.firstCharLatency; //time (in ms) spent until first character is typed into the textbox
  values.respExecutionTime = this.lastCharLatency-this.firstCharLatency; //time (in ms) spent for typing response in the textbox
  values.respSubmitTime = this.latency - this.lastCharLatency; //time (in ms) spent until submitting response after typing the last character
}
</openended>

Copyright Millisecond Software, LLC. All rights reserved.