Simulink Keyboard Input v2
Version 1.2.0.0 (10.9 KB) by
Emanuele Ruffaldi
Allows to read input keyboard during Simulink simulation
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 (2024). Simulink Keyboard Input v2 (https://www.mathworks.com/matlabcentral/fileexchange/24216-simulink-keyboard-input-v2), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2015b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- Simulink > Modeling >
- MATLAB > Environment and Settings > Desktop >
- Simulink > Simulation > Prepare Model Inputs and Outputs >
Find more on Modeling in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Simulink Keyboard Input
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.