0

Is it possible to use the keyboard instead of the joystick or the spacemouse block in simulink ?

Thank you

Julio Guerra
  • 5,523
  • 9
  • 51
  • 75

1 Answers1

0

I finally found a solution.

http://www.mathworks.com/matlabcentral/fileexchange/24216-simulink-keyboard-input-v2

Use this function in a "Level-2 M-file S-Function" block. The first output gives the last key pressed. The second output gives 1 if a key is pressed, 0 otherwise.

Julio Guerra
  • 5,523
  • 9
  • 51
  • 75