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
You can then use the [matlab package manager](https://github.com/mobeets/mpm), to simply download the appropriate version of those dependencies and add them to your path by running a `getDependencies` function like the one below where you just need to replace `YOUR_EXPERIMENT_NAME` by the name of your experiment.
45
+
46
+
```matlab
47
+
function getDependencies(action)
48
+
% Will install on your computer the matlab dependencies specified in the mpm-requirements.txt
49
+
% and add them to the matlab path. The path is never saved so you need to run getDependencies() when
50
+
% you start matlab.
51
+
%
52
+
% getDependencies('update') will force the update and overwrite previous version of the dependencies.
53
+
%
54
+
% getDependencies() If you only already have the appropriate version but just want to add them to the matlab path.
- the windon opened takes the whole screen by default
86
+
- set in debug mode with window transparency if necessary
87
+
- can skip synch test if you ask for it (nicely)
88
+
- gets the flip interval
89
+
- computes the pixel per degree of visual angle
90
+
- set font details
91
+
- keyboard
92
+
- sound
93
+
94
+
### testKeyboards
95
+
96
+
Checks that the keyboards asked for properly connected.
97
+
98
+
If no key is pressed on the correct keyboard after the timeOut time this exits with an error.
99
+
100
+
### cleanUp
101
+
102
+
A wrapper function to close all windows, ports, show mouse cursor, close keyboard queues
103
+
and give access back to the keyboards.
104
+
36
105
### getResponse
37
-
It is wrapper function to use KbQueue which is definitely what you should used to collect responses.
106
+
107
+
It is wrapper function to use `KbQueue` which is definitely what you should used to collect responses.
38
108
39
109
You can easily collect responses while running some other code at the same time.
40
110
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.
111
+
It will only take responses from the `response box` which can simply be the "main keyboard" or
112
+
another keyboard connected to the computer or the response box that the participant is using.
42
113
43
-
You can use it in a way so that it only takes responses from certain keys.
114
+
You can use it in a way so that it only takes responses from certain keys and ignore others (like
115
+
the triggers from an MRI scanner).
44
116
45
117
If you want to know more on how to use it check its help section and the `CPP_getResponseDemo.m`.
46
118
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:
119
+
To select a specific keyboard to be used by the experimenter or the participant, you need to know
120
+
the value assigned by PTB to each keyboard device.
0 commit comments