up Inquisit Language Reference

lasteventport property

The number of the port that generated the last event.

Member of



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).


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

<text sometext>
/ items= ("height = <% xid.lasteventport %>")

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.