up Inquisit Language Reference

lastDropLatency property

The time in milliseconds between the start and finish of the last drag/drop gesture.

Member of

<trial> <likert> <openended> <sliderTrial> <surveyPage>

Syntax

trial.name.lastDropLatency

Read Only

Type

integer

Remarks

The start of the time interval is the initiation of a drag gesture. The end of the interval is when the item is successfully dropped.

Examples

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

<text myText>
/ items= ("last drop target = <% trial.lastDropLatency %>")
</text>

This code demonstrate how to use the 'lastDropLatency' to calculate the onsettime of the dragging movement at trial conclusion (Note: 'this' represents 'trial.myTrial' in this context).

<trial myTrial>
/ inputDevice = dragDrop
/ stimulusFrames = [1 = target, dot]
/ validResponse = (target)
/ onTrialEnd = {
  values.dragDuration = this.lastDropLatency;
  values.dropRT = this.latency;
  values.dragStart = values.dropRT - values.dragDuration;
}
</trial>

Copyright Millisecond Software, LLC. All rights reserved.