Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 > All Parameters > 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 Changed2016a

Was this topic helpful?