Update Getting started authored by Jonas Matthias Rose's avatar Jonas Matthias Rose
...@@ -84,11 +84,13 @@ Very simple experiments (especially for testing purposes) can be coded within on ...@@ -84,11 +84,13 @@ Very simple experiments (especially for testing purposes) can be coded within on
Functions that you will have to use in every single script are 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 [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. [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: 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); [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); [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.)); [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.)). • 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: 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 [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). [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).
... ...
......