up Inquisit Language Reference

port element

The port element defines a set of 8-bit signals to be sent through a serial or parallel port.

Attributes

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

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

/ onAnimate = { script }
/ port = port
/ subport = porttype
/ onPrepare = { script }
/ resetInterval = integer
/ select = selectmode(stimulus)
/ select = selectmode(list)
/ select = selectmode(integer, integer, integer, ...)
/ select = list
/ select = selectmode
/ select = index

/ selectionRate = rate
</port>

Properties

port.name.eraseSignal
port.name.portNumber
port.name.currentIndex
port.name.currentItem
port.name.currentItemNumber
port.name.currentValue
port.name.erase
port.name.itemCount
port.name.items
port.name.nextIndex
port.name.nextValue
port.name.playThrough
port.name.resetInterval
port.name.selectedCount
port.name.selectedIndex
port.name.selectedValue
port.name.skip
port.name.stimulusOnset
port.name.timestamp
port.name.unselectedCount
port.name.name
port.name.typeName

Functions

port.name.appendItem
port.name.clearItems
port.name.insertItem
port.name.item
port.name.removeItem
port.name.resetSelection
port.name.setItem

Remarks

The port element determines which port the signal is sent through along with how individual signals are selected on each trial (e.g. randomly, in sequence, etc.).

Inquisit supports sending values to a serial (RS 232) port on Windows only. Inquisit supports parallel port signaling on both Windows and Mac. You'll need to first install a PCI Express parallel port card into an open PCI Express slot on your computer, or to the Mac Thunderbolt port via an adapter. See documentation for the parallel port monitor for details on connecting a parallel port to a Mac.

Examples

The following presents signals through the data register of the parallel port (LPT2). Items are selected based on the currently selected item of a another stimuli called "myText".

<port somesignal>
/ port = LPT2
/ subport = data
/ items = ("00000001", "00000010", "00000100", "00001000")
/ erase = ("00000000")
/ select = current(myText)
</port>

The above port element can also be coded as follows:

<port somesignal>
/ port = LPT2
/ subport = data
/ items = (1, 2, 4, 8)
/ erase = (0)
/ select = current(myText)
</port>

Copyright Millisecond Software, LLC. All rights reserved.