Simulink Keyboard Input v2

Allows to read input keyboard during Simulink simulation

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Improvements respect original "Simulink Keyboard Input":
- second output for triggering key arrival (for Subsystems and Char)
- inherited sampling time
- close window on close
- handle of window as state so faster response
- Level-2 S-Function

Cite As

Emanuele Ruffaldi (2026). Simulink Keyboard Input v2 (https://se.mathworks.com/matlabcentral/fileexchange/24216-simulink-keyboard-input-v2), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired by: Simulink Keyboard Input

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2.0.0

Updated to R2016b with the support for non numeric handles

1.0.0.0