Disable keyboard output into command window
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Femke R
le 20 Avr 2022
Réponse apportée : Roland W. Fleming
le 8 Jan 2023
Hi, I am running an experiment using Matlab and Psychtoolbox. Here a participant is using an instrument that prints (a lot of) letters. This instrument is embedded into the computer as a keyboard, which means that the input is handled the same as regular keyboard presses. This means however, that during the experiment, the output is often printed into the command window (same as if I were to type in it). This is very annoying since I need to monitor certain things during the experiment which is impossible if there are letters constantly shifting my view of the command window. I do not need to type anything into the command window during the experiment myself, so is there a way to disable keyboard output into the command window? So that if I were to type into the command window, it would not show up?
0 commentaires
Réponse acceptée
Roland W. Fleming
le 8 Jan 2023
ListenChar(2)
Just be careful to run ListenChar again at the end of the experiment or on error (using catch and try)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Timing and presenting 2D and 3D stimuli dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!