In the MATLAB Simulink code generation settings, if the execution cycle specified does not match the execution cycle of the corresponding task in AS, the task will automatically stop running. In such cases, is it possible to display a warning or alert during compilation or runtime to notify the user of the incorrect setting?
The MATLAB settings are shown in the figure below:
In AS, the task is placed in task #1 with a cycle of 2 ms.
Upon power-up, the corresponding task stops automatically.
Placing the task in cyclic #2 with a cycle of 10 ms allows it to run normally.


