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

Was this topic helpful?