up Inquisit Language Reference

lastEventPort property

The number of the port that generated the last event.

Member of

<xid>

Syntax

xid.name.lastEventPort

Read Only

Type

integer

Remarks

This property allows a script to determine whether an event was generated by a button press (port number is 0) or an incoming TTL signal from one of the ports of a Response Pad (port number 1 or 2).

Examples

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

<text myText>
/ items= ("height = <% xid.lastEventPort %>")
</text>

Copyright Millisecond Software, LLC. All rights reserved.