Sets the input threshold for analog input (light sensors, microphones) on Cedrus XID devices such as Riponda, StimTracker, and Lumina.
<xid>
none
| 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. |
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.
The following sets the threshold for microphone voicekey input to 50:
<xid riponda>
/ product = risponda
/ onPrepare = { this.setAnalogInputThreshold("M", 50); }
</xid>