Update Stimuli Display: Update Links authored by Fabian Berg's avatar Fabian Berg
......@@ -9,7 +9,7 @@ function: [initWindow(screenNum)](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/b
**Description**
Initializes a Window for displaying stimuli using the OTBR Toolbox. The function [initWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/initWindow.m) optionally takes the display number as argument to place the stimulus window on the correct monitor.
Tipp: When testing the toolbox it is helpful to use two monitors (one for coding one for display). In this case the Windows internal screen ID number (easiest case ‘1’ or ‘2’) needs to be used to initialize the presentation window on this specific monitor. If you use only one monitor the function can be called without argument or with a ‘0’ instead of a screen number. When using two monitors and you want to have a presentation screen over both monitors you can also call the function without argument (if the extended monitor option within windows is being used).
Tipp: When testing the toolbox it is helpful to use two monitors (one for coding one for display). In this case the Windows internal screen ID number (easiest case '1' or '2') needs to be used to initialize the presentation window on this specific monitor. If you use only one monitor the function can be called without argument or with a '0' instead of a screen number. When using two monitors and you want to have a presentation screen over both monitors you can also call the function without argument (if the extended monitor option within windows is being used).
**Inputs**
~~~
......@@ -50,9 +50,9 @@ Tipp: When testing the toolbox it is helpful to use two monitors (one for coding
function: [closeWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/closeWindow.m)
**Description**
Use this function to close the stimulus window, normally at the end of your experiment. Requires global WINDOW, see [initWindow.m]((https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/initWindow.m)). This function can also be used to close the toolbox-windows if the handles have accidentally been deleted. All functions of [closeWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/closeWindow.m) are included in the [stopExperiment](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/stopExperiment.m) function.
Use this function to close the stimulus window, normally at the end of your experiment. Requires global WINDOW, see [initWindow.m](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/initWindow.m). This function can also be used to close the toolbox-windows if the handles have accidentally been deleted. All functions of [closeWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/closeWindow.m) are included in the [stopExperiment](/Initialization#stopexperiment) function.
Tipp: call closeExperiment since it also checks hardware connections and resets them. Still [closeWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/closeWindow.m) can be used to ONLY close the presentation window, while the user needs to close everything else by himself.
Tipp: call [stopExperiment](/Initialization#stopexperiment) since it also checks hardware connections and resets them. Still [closeWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/closeWindow.m) can be used to ONLY close the presentation window, while the user needs to close everything else by himself.
**Examples**
~~~matlab
......
......