cpp-lln-lab / CPP_PTB

a set of function to make it easier to create behavioral, EEG, fMRI experiment with psychtoolbox
https://cpp-ptb.readthedocs.io/en/latest/index.html#
MIT License
12 stars 13 forks source link

Do we want to run testKeyboards(cfg) at every initPTB? #35

Closed Remi-Gau closed 3 years ago

Remi-Gau commented 3 years ago

Might be over aggressive to test this at every PTB init maybe make it dependent on a debug "flag"?

in the subfunction initKeyboard(cfg) of initPTB

CerenB commented 3 years ago

yis for subfunction... isn't it only important for setting the experiment? so maybe it should be done in debug mode even? e.g. first experimenter set the function in fmri room (debug mode), and then runs everything with the defined keyboard numbers.

Remi-Gau commented 3 years ago

Yes but paranoid me likes to run a quick test on the response box at the beginning of every run, hence why I am tempted to do this: as it only asks for one button press from the subject this is not huge.

But I realize not everyone likes this so I might just make this run in debug mode as you suggest and call for a keyboard test when I run my experiments only (from the main script and not initPTB) and not bother everyone.

CerenB commented 3 years ago

Nice to interact with other experimenters to hear their worries. Ok, I might check it every run as well. For others, when it's for decoding exp for instance, runs are super short and many, experimenter may not want to lose time with this on every run.

Remi-Gau commented 3 years ago

yeah that's what I thought. Your subject might be in the zone and you don't want to disturb them. :-)

Remi-Gau commented 3 years ago

Closing this as this was taken care by the previous PR