up Inquisit Language Reference

xid element

The xid element enables interacting with XID-compatible devices such as Lumina fMRI Response Pads, RB-series Response Pads, and StimTracker from Cedrus.

Syntax

<xid xidname>
/ erase = true("bits") or true(integer) or false
/ items = itemname or ("binary", "binary", "binary",... ) or (integer, integer, integer,... )
/ onanimate = [expression; expression; expression; ...]
/ onprepare = [expression; expression; expression; ...]
/ product = product
/ pulseduration = positive integer or -1 to indicate a persistent signal
/ resetinterval = integer
/ select = integer or selectionmode or selectionmode(pool) or dependency(stimulusname) or dependency(listname) or listname
</xid>

Properties

xid.xidname.currentindex
xid.xidname.currentitem
xid.xidname.currentvalue
xid.xidname.erase
xid.xidname.erasesignal
xid.xidname.itemcount
xid.xidname.items
xid.xidname.lastevent
xid.xidname.lasteventaction
xid.xidname.lasteventbutton
xid.xidname.lasteventport
xid.xidname.lastlatency
xid.xidname.name
xid.xidname.nextindex
xid.xidname.nextvalue
xid.xidname.product
xid.xidname.resetinterval
xid.xidname.selectedcount
xid.xidname.skip
xid.xidname.stimulusonset
xid.xidname.timestamp
xid.xidname.typename
xid.xidname.unselectedcount

Functions

xid.xidname.appenditem
xid.xidname.clearitems
xid.xidname.insertitem
xid.xidname.item
xid.xidname.removeitem
xid.xidname.resetselection
xid.xidname.setitem

Remarks

The xid element can be used as a stimulus to send signals to a Cedrus StimTracker. To use the xid element in this mode, simply plug the StimTracker into the computer and ensure that product attribute is set to stimtracker. You can then define the signals as 8-bit values expressed as binary strings or as an object for setting and retrieving properties from a Cedrus RB-Series or Lumina response pad.

The xid element can also be used to get more detailed properties from Cedrus RB-Series or Lumina response pad. The element is not required in order to use a response pad but provides a way to access some of its advanced features. If you do not require access to the advanced properties of the device, you need only set the inputdevice attribute to "XID" and the validresponse and/or correctresponse attributes to the values of the buttons used for the task.

For more information on using Inquisit with Cedrus RB Series and Lumina response pads, see the following topic.

For more information on using Inquisit with a Cedrus StimTracker, see the following topic.

Examples

The following configures a StimTracker as a stimulus and presents the binary values of 1, 2, or 3 in sequential order.

<xid stimtracker>
/ product = stimtracker
/ items = ("000000001", "000000010", "00000011")
/ pulseduration = 100
/ selectionmode = sequence
</xid>

The following creates an element for an RB Series response box so that properties (e.g., xid.responsepad.lastevent) can be retrieved in the script.

<xid responsepad>
/ product = responsepad
</xid>

The following sets the default input device for responding to the XID response device that is plugged into the computer (i.e., RB-Series or Lumina response pad ).

<defaults>
/ inputdevice = XID
</defaults>

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