Documentation

模型配置参数:数据有效性诊断

TheDiagnostics>Data Validitycategory includes parameters for detecting issues related to data (signals, parameters, and states). These issues include:

  • Loss of information due to data type quantization and overflow.

  • Loss of parameter tunability in the generated code.

  • Loss of information due toData Store WriteData Store Readblock ordering.

On the Configuration Parameters dialog box, the following configuration parameters are on theData Validity窗格。

Parameter Description

Signal resolution

Select how Simulink®软件解决信号和状态金宝appsimulink.signalobjects.

单数矩阵的划分

选择诊断动作如果Productblock detects a singular matrix while inverting one of its inputs in matrix multiplication mode.

Underspecified data types

Select the diagnostic action to take if Simulink software could not infer the data type of a signal during data type propagation.

模拟range checking

当信号超过指定的最小值或最大值时,选择要采取的诊断动作。

字符串截断检查

选择诊断动作如果string signal is truncated.

包裹在溢出上

选择诊断动作如果value of a signal overflows the signal data type and wraps around.

未指定的维度

如果Simulink软件无法在编译时推断信号维度,请选择要采取的诊断动作。金宝app

Saturate on overflow

如果信号的值太大而无法用信号数据类型表示,则选择诊断动作,从而导致饱和。

INF或NAN块输出

如果块输出的值为inf或者NaN在当前时间步骤。

标识符的“ RT”前缀

Select the diagnostic action to take during code generation if a Simulink object name (the name of a parameter, block, or signal) begins withrt.

Detect downcast

在模拟过程中,选择参数降低时要采取的诊断动作。

检测溢出

Select the diagnostic action to take if a parameter overflow occurs during simulation.

Detect underflow

选择在模拟过程中发生参数下流时要采取的诊断动作。

Detect precision loss

当参数选择诊断操作r precision loss occurs during simulation.

检测可调性丧失

Select the diagnostic action to take when an expression with tunable variables is reduced to its numerical equivalent in the generated code.

Detect read before write

如果模型试图从数据存储中读取数据存储的数据,则选择诊断动作,以便在此时间步骤中读取数据存储。

在阅读后检测写

如果模型在当前时间步长以前从中读取数据后,请选择诊断操作以采取的诊断动作。

Detect write after write

选择诊断动作如果model attempts to write data to a data store twice in succession in the current time step.

Multitask data store

Select the diagnostic action to take when one task reads data from a数据存储存储器另一个任务写入数据的块。

Duplicate data store names

当模型包含具有相同名称的多个数据存储时,选择要采取的诊断动作。数据存储可以通过数据存储存储器blocks or金宝appsimulink.signalobjects.

These configuration parameters are in the高级参数部分。

Parameter Description

Array bounds exceeded

Ensure that Simulink-allocated memory used in S-functions does not write beyond its assigned array bounds when writing to its outputs, states, or work vectors.

模型验证块启用

Enable model verification blocks in the current model either globally or locally.

检测在同一时间执行的多个驾驶块

Select the diagnostic action to take when the software detects a Merge block with more than one driving block executing at the same time step.

未指定的初始化检测

Select how Simulink software handles initialization of initial conditions for conditionally executed subsystems, Merge blocks, subsystem elapsed time, and Discrete-Time Integrator blocks.

检测模棱两可的自定义存储类最终值

Detect if a signal using a Reusable custom storage class does not have a unique endpoint. The run-time environment should not read the variable because its value is ambiguous.

Detect non-reused custom storage classes

Detect if a signal uses a Reusable custom storage class that the code generator cannot reuse with other uses of the same Reusable custom storage class. If the code generator cannot implement reuse, the generated code will likely contain additional global variables.

相关话题