up Inquisit Language Reference

setAnalogInputThreshold function

Sets the input threshold for analog input (light sensors, microphones) on Cedrus XID devices such as Riponda, StimTracker, and Lumina.

Member of

<xid>

Syntax

xid.name.setAnalogInputThreshold(input, threshold)

Return Type

none

Parameters

Name Type Description
input string A single character indicating the input. A-D for light sensors 1-4, M for microphone, L for audio left, R for audio right, T for scanner trigger
threshold integer A value of 0 through 100 indicating threshold at which analog input should signal.

Remarks

The threshold determines the level required for analog input to produce a signal. For example, if background noise causes a voice key microphone to signal, the threshold should be set higher. If participants have to shout for responses to be registered, the threshold should be lowered.

Examples

The following sets the threshold for microphone voicekey input to 50:

<xid riponda>
/ product = risponda
/ onPrepare = { this.setAnalogInputThreshold("M", 50); }
</xid>

Copyright Millisecond Software, LLC. All rights reserved.