up Inquisit Language Reference

preTrialSignal attribute

The pretrialsignal attribute specifies that before running a trial, Inquisit should wait for a signal from an external device.

Member of

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

Syntax

/ preTrialSignal = (modality, signal)

or

/ preTrialSignal = (mouse, stimulusname)

or

/ preTrialSignal = (mouse, mouseevent)

Parameters

Name Type Description
modality signaltypeenum
ValueDescription
comSerial port input.
keyboardKeyboard input.
lptParallel port input.
mouseMouse input.
xidInput from a Cedrus device.
signal integer An integer representing the numeric signal to wait for. If the modality is keyboard, this is the scancode of the key.
mouseevent mouseeventenum
ValueDescription
dragDropDragging and dropping a stimulus
lButtonDblClkLeft button double-click.
lButtonDownLeft button press.
lButtonUpLeft button release.
mButtonDblClkMiddle button double-click.
mButtonDownMiddle button press.
mButtonUpMiddle button release.
mouseMoveMoving the mouse
mouseWheelMoving the mouse wheel
rButtonDblClkRight button double-click.
rButtonDownRight button press.
rButtonUpRight button release.
xButton1DblClk
xButton1Down
xButton1Up
xButton2DblClk
xButton2Down
xButton2Up
xButtonNDblClk
xButtonNDown
xButtonNUp
stimulusname stimulus The name of a visual stimulus element defined elsewhere in the script.

Remarks

This is useful for requiring a confirmation response from subjects before starting a trial, or for synchronizing Inquisit with an external device such as an EEG.

Examples

The following trial waits for a parallel port signal of value 1 sent from an fMRI imaging system before starting the trial:

<trial target>
/ stimulusTimes = [0=facepicture]
/ validResponse = (57)
/ pretrialsignal = (LPT1, 1)
</trial>

The following trial requires the subject to press the spacebar to start the trial:

<trial myTrial>
/ stimulusTimes = [0=myText]
/ validResponse = (57)
/ pretrialsignal = (keyboard, 57)
</trial>

Copyright Millisecond Software, LLC. All rights reserved.