|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Stages > Automatically starting the trials in a stage Automatically starting the trials in a stage
IntroductionIn some experiments, you may wish to test your animals in repeated trials at a certain set frequency. For example, you might want to track the animals for 10 minutes once every hour; alternatively, you might want to track the animals for 1 hour every day starting at 7am. In either case, you can use the options to 'automatically start trials in a stage' to achieve this.
Specifying when trials should startEach Stage element in a protocol automatically includes some sub-elements, one of which is titled Automatic repetition of trials. Selecting this sub-element shows six options for how ANY-maze should automatically start the trials in a stage; they are: Don't automatically repeat the trials in this stageThis is the default option for all stages; ANY-maze will simply end a trial and then wait for you to start the next one. A set period after the previous trial startsIn this case the next trial will begin a certain period after the start time of the previous trial. This can mean that the trial may not start automatically if the period you specify is shorter than the duration of the previous trial. For example, if you specify that the trial should start 5 minutes after the start of the previous trial, and the previous trial lasts 10 minutes, then ANY-maze won't start the trial automatically, as it doesn't start trials whose start time is in the past unless you explicitly allow this. The period you specify can use units of s (seconds), min or m (minutes), h (hours) and d (days). If you don't enter any units, then seconds will be assumed. You can enter any period from 0 to 1 day. Note that this option will usually only automatically start trials 2, 3, etc. It won't start trial 1, as it has no previous trial. This behaviour can be altered for stages other than the first stage, by basing the start of the first trial in the stage on the last trial of the previous stage, although there are limitations to when this will work. A variable period after the previous trial startsIn this case, the next trial will begin a random time (between two limits) after the start time of the previous trial. This can mean that the trial may not start automatically if the period you specify is shorter than the duration of the previous trial. For example, if you specify that the trial should start between 5 minutes and 10 minutes after the start of the previous trial, and the previous trial lasts 20 minutes, then ANY-maze won't start the trial automatically, as it as it doesn't start trials whose start time is in the past unless you explicitly allow this. Here, you should specify two times and ANY-maze will then choose a random time between them - for example, if you specify 5 minutes to 10 minutes, ANY-maze will choose a time between the two (inclusive), such as 6 minutes, 7 minutes 3 seconds, or 10 minutes. The periods you specify can use units of s (seconds), min or m (minutes), h (hours) and d (days). If you don't enter any units, then seconds will be assumed. You can enter any period from 0 to 1 day. Note that this option will usually only automatically start trials 2, 3, etc. It won't start trial 1, as it has no previous trial. This behaviour can be altered for stages other than the first stage, by basing the start of the first trial in the stage on the last trial of the previous stage, although there are limitations to when this will work. A set period after the previous trial endsIn this case, the next trial will begin a certain period after the end of the previous trial. The period you specify can use units of s (seconds), min or m (minutes), h (hours) and d (days). If you don't enter any units, then seconds will be assumed. You can enter any period from 0 to 1 day. Entering 0 is useful, as it means ANY-maze will start the next trial as soon as possible after the previous trial ends. Note that there is always a delay of at least 1 second between trials, as ANY-maze needs this time to save the results of the previous trial and get ready for the next one. Note that this option will usually only automatically start trials 2, 3, etc. It won't start trial 1, as it has no previous trial. This behaviour can be altered for stages other than the first stage, by basing the start of the first trial in the stage on the last trial of the previous stage, although there are limitations to when this will work. A variable period after the previous trial endsIn this case, the next trial will begin a random time (between two limits) after the end of the previous trial. Here, you should specify two times and ANY-maze will then choose a random time between them - for example, if you specify 5 minutes to 10 minutes, ANY-maze will choose a time between the two (inclusive), such as 6 minutes, 7 minutes 3 seconds, or 10 minutes. The periods you specify can use units of s (seconds), min or m (minutes), h (hours) and d (days). If you don't enter any units, then seconds will be assumed. You can enter any period from 0 to 1 day. Note that this option will usually only automatically start trials 2, 3, etc. It won't start trial 1, as it has no previous trial. This behaviour can be altered for stages other than the first stage, by basing the start of the first trial in the stage on the last trial of the previous stage, although there are limitations to when this will work. Start each trial at the following time of dayIn this case, you can specify a specific time of day (using the 24 hour clock) and ANY-maze will start the trials at this time. Clearly, this means that the system will run one trial per day. Note that unlike the other options, this option will always automatically start the first trial in the stage. Allowing tests to be automatically started when the start time is in the pastUsually, if the time that a trial should start is in the past, ANY-maze won't start the trial automatically - rather it will tell you that the start time has passed and leave you to start the test manually. Generally this is what you'll want, as the system can't know whether it makes sense to start the test or not - it just knows that it's too late to start the test at the time you had specified. However, in some experiments, you may wish to specify that if the time at which the test should start has passed, then the test should simply start as soon as possible. You can achieve this by selecting the option If the trial's start time is in the past, then start it as soon as possible. Starting the first trial of a stage based on the last trial of the previous stageUsually ANY-maze will automatically repeat trials within a particular stage, but when it reaches the end of the stage it will stop. This generally makes sense, as in most cases the animal to test will change between the end of one stage and the start of the next one - so automatically starting the next trial would be impossible anyhow. However, there are circumstances when automatically starting the first trial of a stage is possible, and in these circumstances selecting this option will cause the trials of one stage to flow seamlessly into the next. The circumstances when this will work are:
Side effects of automatically starting trials in a stageClearly, if the trials in a stage are to start automatically, then for each animal, you will need to run trial 1, then trial 2, then trial 3 and so on. (i.e. you can't run trial 1 for animal 1, then trial 1 for animal 2, and so on). For this reason, if you use automatic repetition of trials, ANY-maze will automatically set the stage to use the option Perform all the trials for each animal before starting the next animal.
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0407 |