ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Inputs and outputs > Selectors > Selector actions

Selector actions

Selectors are only available on certain types of device (such as the ANY-maze Operant interface and Ugo Basile Operon).

Introduction

As you may know, a procedure can include actions, some of which can alter a selector - these are detailed below.

Actions

Set selector valueChanges the value of the selector to some new value specified as a parameter to the action.

This value can be set using one of the named values for the selector (these values will be listed as protocol items on the Variables tab of the procedure editor. You can also use a numeric value, by storing the value in a variable. Examples of these methods of controlling a selector are shown below.

If the parameter falls outside the selector's range, the output will not be set.

Note that when a selector changes value, it reports its new value back to the procedure, so in the first example below, after setting the selector's value to 'Red', the Selector value changed event will fire.

  

  

Figure 1. This procedure sets the selector (which controls a range of coloured LEDs) to the 'Red' LED. 'Red' has been set up as one of the selector's named values.

  

  

Figure 2. This procedure cycles through all possible values of the same LED in one-second intervals, using a numeric value.

See also:

 •Setting up a selector 
 •Editing a selector 
 •Setting names for the different values of a selector 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0309