MATLAB Answers

With Simulink Real-Time and Multi-Rate Subsystems, is there a way to set a "block execution finished" flag?

3 views (last 30 days)
Thomas Marullo
Thomas Marullo on 22 Dec 2018
I have a multi-rate simulink real-time model with data dependency. I'm trying to figure out a good way to notifiy blocks when data is ready because there are times when the computation required for a subsystem is not as demanding and data will be ready sooner. And then there are times when data may take too long and I want the next subsystem to know it wasn't ready, (CPU overloads are disabled). So is there a good way to set some sort of "subsystem execution done" flag that would happen at the end of a subsystem execution and then reset on the next model cycle?


Sign in to comment.

Answers (0)




Community Treasure Hunt

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

Start Hunting!