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.

Syntax

<port portname>
/ 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; ...]
/ port = port name
/ resetinterval = integer
/ select = integer or selectionmode or selectionmode(pool) or dependency(stimulusname) or dependency(listname) or listname
/ subport = porttype
</port>

Properties

port.portname.currentindex
port.portname.currentitem
port.portname.currentvalue
port.portname.erase
port.portname.erasesignal
port.portname.itemcount
port.portname.items
port.portname.name
port.portname.nextindex
port.portname.nextvalue
port.portname.playthrough
port.portname.portnumber
port.portname.resetinterval
port.portname.selectedcount
port.portname.skip
port.portname.stimulusonset
port.portname.timestamp
port.portname.typename
port.portname.unselectedcount

Functions

port.portname.appenditem
port.portname.clearitems
port.portname.insertitem
port.portname.item
port.portname.removeitem
port.portname.resetselection
port.portname.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 "sometext".

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

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