ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Behaviour > Virtual switches > Setting up a virtual switch > Specifying threshold limits of a virtual switch

Specifying threshold limits of a virtual switch

In brief

If you select one of the 'threshold' options for what will cause a virtual switch to turn on, then you will need to specify that actual threshold values in the Upper limit and Lower limit fields.

Details

Upper limit

If you have specified that the virtual switch will be on when the value of a measure is greater than a certain value, then you should enter that value in the Upper limit field. In fact the switch will be on if the value is greater than OR EQUAL TO this value. This is usually such a subtle difference as to be unnoticeable. However, it becomes important if you create multiple threshold virtual switches with the same thresholds so as to classify a value. For example, if you specify that when the animal is moving at a speed greater than 1m/s it is 'Fast', and when it is moving at less than 1m/s it is slow, then it is important that at a speed of exactly 1m/s the animal is not classified as both 'Fast' and 'Slow' - it won't be; it will be 'Fast'.

If you specify that the virtual switch will be on when the value of a measure is between two values, then you should enter the larger value here. The switch will only be on when the value of the measure is LESS THAN this value (and GREATER THAN OR EQUAL TO the value in the Lower limit field).

If you specify that the virtual switch will be on when the value of a measure is less than a certain value, then you can optionally enter an upper limit in this field so as to create some hysteresis.

Lower limit

If you have specified that the virtual switch will be on when the value of a measure is less than a certain value, then you should enter that value in the Lower limit field. The switch will be on if the value of the measure is LESS than the value you enter.

If you specify that the virtual switch will be on when the value of a measure is between two values, then you should enter the smaller value here. The switch will only be on when the value of the measure is GREATER THAN OR EQUAL TO this value (and LESS THAN the value in the Upper limit field).

If you specify that the virtual switch will be on when the value of a measure is greater than a certain value, then you can optionally enter a lower limit in this field so as to create some hysteresis.

See also:

 Instantaneous values that can be threshold by a virtual switch 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0379