主要内容

Data Types

将特定的数据类型分配给信号和块参数,定义枚举

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.

展开全部

Block Support Table 查看数据类型支持金宝app金宝appblocks
数据类型转换 将输入信号转换为指定的数据类型
数据类型转换Inherited 使用继承的数据类型和缩放从一个数据类型转换为另一种数据类型
Data Type Duplicate Force all inputs to same data type
Data Type Propagation 根据参考信号的信息设置数据类型和扩展信号的缩放
Data Type Scaling Strip 删除缩放和映射以内置整数
ASCII到字符串 Uint8 vector signal to string signal
撰写字符串 Compose output string signal based on specified format and input signals
扫描字符串 Scan input string and convert to signals per specified format
字符串比较 比较两个输入字符串
字符串连接 Concatenate input strings to form one output string
字符串常数 输出指定的字符串
String Contains Determine if string contains, starts with, or ends with pattern
String Count 计数字符串中的模式出现
字符串查找 第一次出现模式字符串的返回索引
字符串长度 输入字符串中字符的输出数量
字符串到ASCII Convert string signal to uint8 vector
String to Double Convert string signal to double signal
String to Enum 输入字符串信号至列举信号
字符串到单个 Convert string signal to single signal
基因 从输入字符串信号中提取子字符串
到字符串 将输入信号转换为字符串信号

Functions

展开全部

enumeration Class enumeration members and names
Simulink.defineIntEnumType Define enumerated data type
金宝appsimulink.findintenumtype Find enumeration classes defined bySimulink.defineIntEnumType
金宝appsimulink.clearintenumtype 删除枚举类定义Simulink.defineIntEnumType
金宝appsimulink.data.getenumtypeinfo Get information about enumerated data type
Simulink.data.isSupportedEnumClass Determine whether an enumeration class is valid for金宝app
Simulink.data.isSupportedEnumObject 确定枚举对象是否有效金宝app
fixdt 创造Simulink.NumericTypeobject describing a fixed-point or floating-point data type
fixpt_evenspace_cleanup Modify breakpoints of lookup table to have even spacing
FIXPT_INTERP1 Implement 1-D lookup table
fixpt_look1_func_approx Optimize fixed-point approximation of nonlinear function by interpolating lookup table data points
fixpt_look1_func_plot Plot fixed-point approximation function for lookup table
FIXPT_SET_ALL Set property for each fixed-point block in subsystem
fixptbestexp 指数为定点表示值的最佳精度
FIXPTBESTPREC Determine maximum precision available for fixed-point representation of value
漂浮 创造Simulink.NumericType描述浮点数据类型的对象
num2fixpt Convert number to nearest value representable by specified fixed-point data type
sfix 创造Simulink.NumericType描述签名的定点数据类型的对象
sfrac 创造Simulink.NumericType描述签名分数数据类型的对象
sint 创造Simulink.NumericTypeobject describing signed integer data type
金宝appsimulink.importexternalctypes Generate金宝apprepresentations of custom data types defined by C or C++ code
TunableVars2参数对象 从可调参数创建金宝appsimulink参数对象
UFIX 创造Simulink.NumericType描述未签名的定点数据类型的对象
UFRAC 创造Simulink.NumericType描述未签名分数数据类型的对象
Uint 创造Simulink.NumericType描述未签名整数数据类型的对象
stringtype 创建字符串数据类型
showblockdatatypetable 显示HTML页面金宝appblock data type support

Classes

Simulink.AliasType 创建信号和参数数据类型的别名
Simulink.NumericType Specify floating-point, integer, or fixed-point data type

金宝appSimulink配置参数

Topics

验证浮点嵌入式模型

使用仿真来验证控制算法是否可以在使用单精度浮点数据类型的同时继续满足应用程序要求。

控制数据类型的信号

应用以外的数据类型双倍的在模型中发出信号。

指定定点数据类型

如果您没有定点Designer™,则仍然可以检查和使用其他人与您共享的定点模型。

指定数据Types Using Data Type Assistant

交互式将数据类型(例如整数,定点和枚举类型)应用于模型中的数据项。

Use Enumerated Data in Simulink Models

创造and use enumerations in Simulink models.

金宝app模拟字符串

在模型中使用字符串。

关于Simulink中的数据类型金宝app

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.

Simulink Enumerations

枚举数据是仅限于有限值集的数据。金宝appSimulink模型可以将枚举用作数据类型。

Related Information

Featured Examples