|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Preventing a test from starting until an I/O device is ready Preventing a test from starting until an I/O device is ready
OverviewExperiments often rely on the use of external devices, and sometimes need these devices to be in a certain state before the experiment starts. The most common example is probably that of temperature - apparatus with thermal plates might need the temperatures of these plates to be correct before the test should start, or the water in a water-maze might need to be at a certain temperature. ANY-maze allows you to prevent a test from being started until certain conditions have been met. DetailsTwo actions are available to ANY-maze procedures which can control whether or not a test can be started:
These actions can only be used in the shaded area at the top of a procedure, since they are only applicable before the test has started. The Prevent test start action will simply cause the Once the relevant condition has been met, you can use the Allow test start to remove this text and enable the Note that Temperature controllers already have a way of specifying a start temperature (and preventing a test from starting if that temperature is not reached) - see Specifying a temperature controller's start temperature for details on how to do this. ExampleThe following example shows a procedure for an experiment where the animal can activate or deactivate some levers. The test must start with the levers in the 'inactive' position; this simple procedure will prevent the text test from starting until the levers have been restored to their inactive positions.
Figure 1. This procedure will prevent the test from starting until the two levers are in the correct position.
Note that the statements in this procedure are all in the shaded area at the top of the procedure, i.e. they are run before the test starts.
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0470 |