ANY-maze Help > I/O devices supported by ANY-maze > The ANY-maze interface device family > The ANY-maze Touch switch interface > Using the ANY-maze Touch switch interface in tests

Using the ANY-maze Touch switch interface in tests

Introduction

After connecting and testing your touch switch, you'll be ready to actually use it in some tests.

Adding the Touch switches as inputs to the protocol

To use a Touch switch in tests, you will need to add an on/off input to your protocol and select the port on the ANY-maze Touch switch interface that the apparatus is connected to as the port to use. Each time the animal makes a touch, the input will be registered as active.

Note that by default, ANY-maze uses a 20ms debounce interval for all on/off inputs. What this means is that the input has to settle to a stable state for at least 20ms before the state change will be reported. This is usually useful for touch switches, as they can exhibit rapid switching at the moment of the touch - however it does limit the switches to detecting no more than 25 touches per second. If you want to reduce the debounce interval (or eliminate it altogether) then, when you set up the on/off input you should specify that it should be triggered by the input switching on for a certain duration, and then enter the reduced debounce interval - for example 10ms, or 0 if you don't want the input to be debounced at all.

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T1079