|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Inputs and outputs > Laser controllers > Setting up a laser controller > Setting the laser controller activation and reset options Setting the laser controller activation and reset options
In briefYou should use the buttons on the laser controller's settings page to specify when the laser should be activated. As well as these options, you can also control the laser using a procedure, something which is described in more detail below. Specifying when the laser should be activatedClearly, if you've included a laser controller in your protocol, it's because you want to turn it on and off during the tests - but when should it turn on? In some cases, the answer may simply be 'when the test starts'; but in other cases you may want to do more sophisticated things, perhaps turning it on and off as the animal moves into different zones. Activating the laser at the start of the testFor the simple case of activating the laser at the start of the test, you can use the option here (in the protocol's laser controller settings). This doesn't mean you can't also use a procedure (perhaps to switch it off again); it just means that when the start starts, the laser will be activated. Activating the laser based on more complex rulesIn this case, you should use a procedure to activate (and/or deactivate) the laser. Full details are beyond the scope of this help topic, as it rather depends on what you want to do; but, for example, the procedure in figure 1 will wait until the animal enters the 'Target zone' and will then activate the 'Optogenetic laser'. More details can be found in the Introduction to procedures.
Figure 1. This simple procedure will activate the 'Optogenetic laser' when the animal enters the 'Target' zone.
Activating the laser BEFORE the test startsIf you want to activate a laser before the test starts, then the best method is to create a procedure to do this; as can be seen in figure 2, this is very simple.
Figure 2. This one-statement procedure will activate the 'Optogenetic laser' before the test starts (because statements in the orange-shaded area are performed as soon as the test is ready).
The key point here is that statements in the orange-shaded area at the top of the procedure editor are performed as soon as the test is ready. So, if you add an Action statement (to activate a laser controller) to this area, then the laser will be activated before the test begins. Resetting a laser controller at the end of a testWhen a test ends, ANY-maze will deactivate the laser and reset it to the values entered on the laser's settings page. However, there are circumstances when you might not want this to occur, for example:
The option Don't reset at the end of the test would appear to be the solution to these requirements, but in fact in most case it will only actually be suitable for situation #1. For #2 and #3 selecting it probably won't have quite the effect you'd expect:
The best way to ensure that a laser's state is retained from one trial to the next (even if you close the experiment, exit ANY-maze and turn off your computer between tests) is to use a procedure; this is described in detail here. See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0248 |