up Inquisit Language Reference

inputMask attribute

The inputMask attribute determines which bits should be used in evaluating a response through a parallel port device.

Member of

<trial> <likert> <openended> <sliderTrial> <surveyPage>

Syntax

/ inputMask = mask

Parameters

Name Type Description
mask string A string of eight 0s and 1s serving as a bit mask.

Remarks

The inputMask attribute consists of a sequence of eight 0s and 1s that determine which bits to read from the parallel report in determining a response. This is useful if, for example, a given port is being used simultaneously for both input and output, in which case the mask can be used to prevent Inquisit from including output bits when determining the value of the response. Bits marked with 0 are ignored. Those marked with 1 are used.

Examples

The following tells Inquisit to ignore all but the lowest order bit when reading data from an input device connected to LPT1.

<trial myTrial>
/ inputMask = "00000001"
/ inputDevice = LPT1
</trial>

Copyright Millisecond Software, LLC. All rights reserved.