You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List of PsychToolBox (PTB) related functions for the Crossmodal Perpcetion and Plasticity lab (CPP)
4
+
5
+
Most of the functions here are mostly wrappers around some PTB functions to facilitate their use and to have a codebase to facilitate their reuse.
6
+
7
+
## Code guidestyle
8
+
9
+
We use the `pascalCase` to more easily differentiates our functions from the ones from PTB that use a `CamelCase`.
10
+
11
+
## Structure and function details
12
+
13
+
### setParameters
14
+
15
+
### initPTB
16
+
17
+
### getResponse
18
+
It is wrapper function to use KbQueue which is definitely what you should used to collect responses.
19
+
20
+
You can easily collect responses while running some other code at the same time.
21
+
22
+
It will only take responses from the `response box` which can simply be the "main keyboard" or another keyboard connected to the computer or the response box that the participant is using.
23
+
24
+
You can use it in a way so that it only takes responses from certain keys.
25
+
26
+
If you want to know more on how to use it check its help section and the `CPP_getResponseDemo.m`.
27
+
28
+
To select a specific keyboard to be used by experimenter/participant, you need to know the assigned MATLAB value. To copy-paste this on the command wuindow:
0 commit comments