up Inquisit Language Reference

getAnalogInputThreshold function

Returns 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.getAnalogInputThreshold(input)

Return Type

integer

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

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 gets the threshold for microphone voicekey input and stores it as a value:

<xid riponda>
/ product = risponda
/ onPrepare = { values.voiceKeyThreshold = this.getAnalogInputThreshold("M"); }
</xid>

Copyright Millisecond Software, LLC. All rights reserved.