Getting MATLAB to accept input from external keypad
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I am running MATLAB 2017a on a Macbook Pro 10.12.6 (Sierra). In addition to the keyboard on my laptop, I need MATLAB to take inputs from an external (USB connected) keypad. Even though input from the keypad seems to be functional (i.e., if I press '4', it will show up on MATLAB), MATLAB doesn't take it to be a valid argument. When I run KbDemo, input from the keypad are not being registered as responses. Can someone tell me how to switch the main keyboard input to the external keypad instead?
Thanks in advance
Respuestas (1)
David Fink
el 28 de Sept. de 2017
Since MATLAB displays '4' when you type it on the external keypad, MATLAB does receive signals from the external keypad.
This implies that KbDemo is not handling the external keypad signals as you would expect. Different keys with the same output can be handled differently, so I suggest looking at the source code of KbDemo or asking its authors.
0 comentarios
Ver también
Categorías
Más información sobre Timing and presenting 2D and 3D stimuli en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!