up Inquisit Language Reference

dropsources attribute

The dropsources attribute specifies the set of responses that the monkey should choose from when performing a given trial.

Member of

<trial>

Syntax

/ dropsources = (stimulus, stimulus, stimulus, ...)

Parameters

stimulus The name of a visual stimulus being presented on this trial.

Remarks

This attribute specifies a set of responses considered valid for the test monkey when performing this trial. The set can consist of any valid expression, including numbers, strings, and properties. When the test monkey is run and Inquisit encounters this attribute on a given trial, it will randomly select from the responses listed in the attribute. Controlling the monkey's response is useful for testing scripts that behave very differently depending on responding, or that allow the participant to abort the experiment with a particular response. For example, if a script includes an informed consent trial, the dropsources attribute can be used to make sure that the monkey always gives consent.

Examples

The following trial makes sure the monkey always consents to participate:

<trial consent>
/ stimulusframes=[1=consentform, agreebutton, disagreebutton]
/ inputdevice=mouse
/ validresponse=(agreebutton, disagreebutton)
/ dropsources=("agreebutton")
/ ontrialend=[if (trial.consent.response == "disagreebutton") script.abort()]
</trial>

The following trial makes sure the monkey always consents to participate:

<trial example>
/ stimulusframes=[1=target]
/ inputdevice=keyboard
/ validresponse=("e", "i")
/ dropsources=(values.dropsources)
</trial>

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