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
Copy file name to clipboardExpand all lines: README.md
+59-6Lines changed: 59 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,24 +27,57 @@ The exact version required for this to work but it is known to work with:
27
27
28
28
We use the `camelCase` to more easily differentiates our functions from the ones from PTB that use a `PascalCase`.
29
29
30
+
We keep the McCabe complexity as reported by the [check_my_code function](https://github.com/Remi-Gau/matlab_checkcode) below 15.
31
+
32
+
## How to install
33
+
34
+
35
+
36
+
30
37
## Structure and function details
31
38
32
-
### setParameters
39
+
<!--### setParameters-->
33
40
34
41
### initPTB
35
42
43
+
This will initialize PsychToolBox
44
+
- screen
45
+
- the windon opened takes the whole screen by default
46
+
- set in debug mode with window transparency if necessary
47
+
- can skip synch test if you ask for it (nicely)
48
+
- gets the flip interval
49
+
- computes the pixel per degree of visual angle
50
+
- set font details
51
+
- keyboard
52
+
- sound
53
+
54
+
### testKeyboards
55
+
Checks that the keyboards asked for properly connected.
56
+
57
+
If no key is pressed on the correct keyboard after the timeOut time this exits with an error.
58
+
59
+
### cleanUp
60
+
A wrapper function to close all windows, ports, show mouse cursor, close keyboard queues
61
+
and give access back to the keyboards.
62
+
36
63
### getResponse
37
-
It is wrapper function to use KbQueue which is definitely what you should used to collect responses.
64
+
65
+
It is wrapper function to use `KbQueue` which is definitely what you should used to collect responses.
38
66
39
67
You can easily collect responses while running some other code at the same time.
40
68
41
-
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.
69
+
It will only take responses from the `response box` which can simply be the "main keyboard" or
70
+
another keyboard connected to the computer or the response box that the participant is using.
42
71
43
-
You can use it in a way so that it only takes responses from certain keys.
72
+
You can use it in a way so that it only takes responses from certain keys and ignore others (like
73
+
the triggers from an MRI scanner).
44
74
45
75
If you want to know more on how to use it check its help section and the `CPP_getResponseDemo.m`.
46
76
47
-
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:
77
+
To select a specific keyboard to be used by the experimenter or the participant, you need to know
78
+
the value assigned by PTB to each keyboard device.
79
+
80
+
To know this copy-paste this on the command window:
0 commit comments