Update Getting started authored by Jonas Matthias Rose's avatar Jonas Matthias Rose
......@@ -82,18 +82,18 @@ Several functions of this toolbox are part of one of two modes: human and animal
Very simple experiments (especially for testing purposes) can be coded within one single script by calling functions of this toolbox. Generally, you can call functions of the toolbox one by one each by itself. Some functions, however, depend on the call of other functions before (see [function tree](function-tree)).
Functions that you will have to use in every single script are
[initOTBR ](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/initOTBR.m)(3.3) to initialize the toolbox and
[stopExperiment](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/stopExperiment.m) (3.5.) to close the toolbox and reset all defined IO pins related to the toolbox.
- [initOTBR ](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/initOTBR.m)(3.3) to initialize the toolbox and
- [stopExperiment](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/stopExperiment.m) (3.5.) to close the toolbox and reset all defined IO pins related to the toolbox.
Other essential functions include:
[initWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/initWindow.m) (4.1.) to initialize the presentation window for every visual stimulus display (text, images, videos);
[keyBuffer](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/keyBuffer.m) (9.2.) that is the main function used for behavioral in- and output during animal experiments, it can also be used to code waiting periods or inter-trial intervals (you can also use the Psychophysics toolbox function WaitSecs for that);
[getAnswer](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/getAnswer.m) (9.3.) has a similar usage and is better designed to be used in human experiments (also useful: getButtonClick (9.5.));
bIO (10.1.) which is the most basic function to control external devices for e.g. feeding and punishment in animal experiments (more fine-grained functions for specific uses only: feeding, punishment (10.2., 10.3.)).
- [initWindow](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Screen/initWindow.m) (4.1.) to initialize the presentation window for every visual stimulus display (text, images, videos);
- [keyBuffer](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/keyBuffer.m) (9.2.) that is the main function used for behavioral in- and output during animal experiments, it can also be used to code waiting periods or inter-trial intervals (you can also use the Psychophysics toolbox function WaitSecs for that);
- [getAnswer](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/IO/getAnswer.m) (9.3.) has a similar usage and is better designed to be used in human experiments (also useful: getButtonClick (9.5.));
- bIO (10.1.) which is the most basic function to control external devices for e.g. feeding and punishment in animal experiments (more fine-grained functions for specific uses only: feeding, punishment (10.2., 10.3.)).
Furthermore, two very useful functions are:
[save2File](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/save2File.m) (11.3.) to save all your workspace variables in a MATLAB file and
[errorSave](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/errorSave.m) (11.1.) that, in case of an error, still saves all variables and returns an error warning (needs to be called in a try-catch statement).
- [save2File](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/save2File.m) (11.3.) to save all your workspace variables in a MATLAB file and
- [errorSave](https://gitlab.ruhr-uni-bochum.de/ikn/OTBR/-/blob/master/Tools/errorSave.m) (11.1.) that, in case of an error, still saves all variables and returns an error warning (needs to be called in a try-catch statement).
## Simple example
......
......