up Inquisit Language Reference

lastCharLatency property

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

Member of

<openended>

Syntax

openended.name.lastCharLatency

Read Only

Type

integer

Remarks

None.

Examples

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

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

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

<page myPage>
lastcharlatency = <% trial.myTrial.lastCharLatency %>
</page>

The following code shows how to use 'lastCharLatency' (as well as 'firstCharLatency') 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.