Simulink Block for Real Time Execution

C-MEX S-function that reduces the execution speed of a model close to real time.
Updated 11 Jul 2015

View License

This block is a version of the block given in the submission "Simulink Real Time Execution" (File ID:#21908) with some enhanced features. These blocks could be used to reduce the speed of a Simulink model so that it can be observed running in real time. Compared to the previous submission this version takes the execution time between the calculation steps into account. Furthermore, a high-resolution performance counter is used to get the time that exceeds one microsecond accuracy. As last the remaining time is calculated and given as output.

Cite As

Ivo Houtzager (2024). Simulink Block for Real Time Execution (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simulink Real-Time in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Added Linux support using the POSIX high-resolution performance counter

Fix compilation when min macro is not defined.