Skip to Main Content Skip to Search
Product Documentation

cgsl_0302: Diagnostic settings for multirate and multitasking models

ID: Titlecgsl_0302: Diagnostic settings for multirate and multitasking models
DescriptionFor multirate models using either single tasking or multitasking, set to either warning or error the following diagnostics:
  • Diagnostics > Sample Time > Single task rate transition

  • Diagnostics > Sample Time > Enforce sample time specified by Signal Specification blocks

  • Diagnostics > Data Validity > Merge Block > Detect multiple driving blocks executing at the same time step

For multitasking models, set to either warning or error the following diagnostics:

  • Diagnostics > Sample Time > Multitask task rate transition

  • Diagnostics > Sample Time > Multitask conditionally executed subsystem

  • Diagnostics > Sample Time >Tasks with equal priority

If the model contains Data Store Memory blocks, set to either Enable all as warnings or Enable all as errors the following diagnostics:

  • Diagnostics > Data Validity > Data Store Memory Block > Detect read before write

  • Diagnostics > Data Validity > Data Store Memory Block > Detect write after read

  • Diagnostics > Data Validity > Data Store Memory Block > Detect write after write

  • Diagnostics > Data Validity > Data Store Memory Block > Multitask data store

RationaleSetting the diagnostics improves run-time detection of rate and tasking errors.
See Also

Last Changed2011a

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS