模型配置参数:数据有效性诊断
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 Write和Data Store Readblock ordering.
On the Configuration Parameters dialog box, the following configuration parameters are on theData Validity窗格。
Parameter | Description |
---|---|
Select how Simulink®软件解决信号和状态 |
|
选择诊断动作如果Productblock detects a singular matrix while inverting one of its inputs in matrix multiplication mode. |
|
Select the diagnostic action to take if Simulink software could not infer the data type of a signal during data type propagation. |
|
当信号超过指定的最小值或最大值时,选择要采取的诊断动作。 |
|
选择诊断动作如果string signal is truncated. | |
选择诊断动作如果value of a signal overflows the signal data type and wraps around. |
|
未指定的维度 | 如果Simulink软件无法在编译时推断信号维度,请选择要采取的诊断动作。金宝app |
如果信号的值太大而无法用信号数据类型表示,则选择诊断动作,从而导致饱和。 |
|
如果块输出的值为 |
|
Select the diagnostic action to take during code generation if a Simulink object name (the name of a parameter, block, or signal) begins with |
|
在模拟过程中,选择参数降低时要采取的诊断动作。 |
|
Select the diagnostic action to take if a parameter overflow occurs during simulation. |
|
选择在模拟过程中发生参数下流时要采取的诊断动作。 |
|
当参数选择诊断操作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. |
|
如果模型试图从数据存储中读取数据存储的数据,则选择诊断动作,以便在此时间步骤中读取数据存储。 |
|
如果模型在当前时间步长以前从中读取数据后,请选择诊断操作以采取的诊断动作。 |
|
选择诊断动作如果model attempts to write data to a data store twice in succession in the current time step. |
|
Select the diagnostic action to take when one task reads data from a数据存储存储器另一个任务写入数据的块。 |
|
当模型包含具有相同名称的多个数据存储时,选择要采取的诊断动作。数据存储可以通过数据存储存储器blocks or |
These configuration parameters are in the高级参数部分。
Parameter | Description |
---|---|
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 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. |