Detect ambiguous custom storage class final values
Diagnostic behavior when Reusable
storage class has multiple
endpoints
Model Configuration Pane: Diagnostics / Data Validity
Description
This parameter specifies the diagnostic behavior when a model contains a
Reusable
storage class that has more than one endpoint. An
endpoint is a usage of a Reusable
storage
class with no other downstream usages.
If your model contains aReusable
storage class that does not have a unique
endpoint, the run-time environment must not use the variable value because the value is
ambiguous. If the run-time environment must use the final value of a signal that uses
the Reusable
storage class specification, set this parameter value to
error
.
To resolve the error, remove the Reusable
storage class specification from
the endpoints until the storage class has only one endpoint. For example, in this model,
the final value of the Reusable
storage class
RCSC_1
is ambiguous because RCSC_1
has two
endpoints. If you remove the specification from the Sum block output
signal or from the output signal of the Bias block connected to the
Outport block with a port index of 1
, then the
storage class RCSC_1
has only one endpoint.
Dependencies
To enable this parameter, set System target file to
ert.tlc
.
Settings
warning
(default) | error
| none
warning
The software issues a warning.
error
The software issues an error and terminates the simulation.
none
The software does not issue a diagnostic.
Recommended Settings
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | error |
Programmatic Use
Parameter: RCSCObservableMsg |
Type: string | character vector |
Values: 'none' | 'warning' | 'error' |
Default:
'warning' |
Version History
Introduced in R2017b
See Also
Topics
- Data Validity Diagnostics
- Specify Buffer Reuse for Signals in a Path (Embedded Coder)
- Model Configuration Parameters: Code Generation Optimization (Embedded Coder)