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.

Attributes

<xid name>
/ erase = boolean(bits)
/ erase = boolean(integer)

/ items = itemname
/ items = (binary, binary, binary,... )
/ items = (integer, integer, integer,... )

/ mask = constraint
/ mask = regex

/ onanimate = { script }
/ onanimate = [ script ]

/ product = product
/ pulseduration = positive integer or -1 to indicate a persistent signal
/ onprepare = { script }
/ onprepare = [ script ]

/ resetinterval = integer
/ select = selectmode(stimulus)
/ select = selectmode(list)
/ select = selectmode(integer, integer, integer, ...)
/ select = list
/ select = selectmode
/ select = index

/ selectionrate = rate
</xid>

Properties

xid.name.eraseSignal
xid.name.lastEvent
xid.name.lastEventAction
xid.name.lastEventButton
xid.name.lastEventPort
xid.name.lastLatency
xid.name.product
xid.name.currentIndex
xid.name.currentItem
xid.name.currentItemNumber
xid.name.currentValue
xid.name.erase
xid.name.itemCount
xid.name.items
xid.name.nextIndex
xid.name.nextValue
xid.name.playThrough
xid.name.resetInterval
xid.name.selectedCount
xid.name.selectedIndex
xid.name.selectedValue
xid.name.skip
xid.name.stimulusOnset
xid.name.timestamp
xid.name.unselectedCount
xid.name.name
xid.name.typeName

Functions

xid.name.appendItem
xid.name.clearItems
xid.name.insertItem
xid.name.item
xid.name.removeItem
xid.name.resetSelection
xid.name.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>

Copyright Millisecond Software, LLC. All rights reserved.