In models, data types determine the interactions between signals and block parameters. Numeric data types determine how a computer stores signals and parameters in memory and how a computer performs math operations. Other Simulink®data types determine the structure or allowed values of signals and parameters.
为了模拟计算机硬件的数学行为,或从模型中生成有效的代码,您可以控制信号和参数的数字数据类型。您可以指定浮点,整数,固定点和其他数字类型。看Data Types Supported by Simulink.
Enumerated data types allow signals and parameters to use only a set of values that you specify. You can improve model readability by providing a meaningful name for each enumerated value. To use enumerations in Simulink, seeUse Enumerated Data in Simulink Models.
You can use bus types to group multiple signals or parameters together, which can improve model readability and ease model maintenance. See公共汽车的数据类型.
You can use string types to easily use strings in models.
Simulink.AliasType |
创建信号和参数数据类型的别名 |
Simulink.NumericType |
Specify floating-point, integer, or fixed-point data type |
使用仿真来验证控制算法是否可以在使用单精度浮点数据类型的同时继续满足应用程序要求。
应用以外的数据类型双倍的
在模型中发出信号。
如果您没有定点Designer™,则仍然可以检查和使用其他人与您共享的定点模型。
指定数据Types Using Data Type Assistant
交互式将数据类型(例如整数,定点和枚举类型)应用于模型中的数据项。
Use Enumerated Data in Simulink Models
创造and use enumerations in Simulink models.
在模型中使用字符串。
Data items (signals, block parameters, and states) in a model have a data type, such asint8
, which determines how a computer represents the data in memory.
Data Types Supported by Simulink
金宝appSimu金宝applink支持许多浮点,整数,定点,布尔值和其他数据类型。
Specify a data type for an entire bus by creating a Simulink.Bus object. A bus is a single line that contains data for multiple individual lines.
枚举数据是仅限于有限值集的数据。金宝appSimulink模型可以将枚举用作数据类型。