Scheduling with an Executable
These demos show how to use schedule tasks when generating an executable.
To perform scheduling in MATLAB, normally a timer or tic/toc can be used. However, these functions are not unsupported for code generation.
In Simulink, we can use the Soft Real-Time block for both simulation and executable deployment.
To schedule Simulink code use the Soft Real-Time block.
Note: If you wanted to implement your own real-time scheduling system, you can do so using the coder.ceval method in MATLAB and the MATLAB System Object in Simulink. Contact firstname.lastname@example.org for more information on this topic.