主要内容

迭代的定点转换万博1manbetx

浮点模型转换为使用引导的工作流程到固定点

定点工具是一个用户界面,该界面可自动执行Simulink中指定定点数据类型的任务万博1manbetx®模型。该工具根据模拟,派生或设计范围收集模型对象的范围数据。在里面Iterative Fixed-Point Conversionworkflow, the tool then proposes fixed-point data types that maximize precision and cover the range. You can then review the data type proposals and apply them selectively to objects in your model. If design requirements are not met, you can adjust data type proposal settings, visualize their effects, and iterate until the system meets your requirements.

要将您的模型转换为固定点,请按照以下步骤操作使用定点工具的迭代定点转换。有关完整转换过程的示例,请参见Convert Floating-Point Model to Fixed Point

TheDataTypeWorkflow.Converter对象及其关联对象函数是命令行的替代方案Iterative Fixed-Point Conversion在定点工具中。

工具

Fixed-Point Tool 将浮点模型转换为定点模型

Functions

fxptdlg 打开定点工具

Classes

DataTypeWorkflow.Converter Create fixed-point converter object
datatypeworkflow.finddecoupledsubsystems Get a list of subsystems to replace with an approximation
DataTypeWorkflow.ProposalSettings 提案设置对象的数据类型建议
DataTypeWorkflow.Result Object containing run result information
DataTypeWorkflow.VerificationResult 将系统转换为固定点后的验证结果

话题

迭代定点转换工作流程概述

准备转换系统

收集范围

Propose Data Types

Convert Data Types

Verify Results

Troubleshooting

不支持定点数据类型的块万博1manbetx

对定点转换不支持的块进行故障排除。万博1manbetx

并使用MATLAB函数的最佳实践n Block in Automated Fixed-Point Conversion Workflows

Follow best practices and avoid unsupported MATLAB Function block features.

可能导致数据类型传播错误的模型

Know which modeling practices could cause data type propagation errors after autoscaling.

Resolve Range Analysis Issues

Troubleshoot range analysis issues.

Fixing Design Range Conflicts

Avoid specifying conflicting design minimum and maximum values in your model.

Insufficient Design Range Information

Troubleshoot errors caused by insufficient design range information by providing additional input design minimum and maximum values.

提供更多的设计范围信息

故障排除不足的设计范围信息,以防止成功的派生范围分析。

Troubleshoot Range Analysis of System Objects

Reconfigure a System Object, if necessary, so that ranges can be derived for the model.

The Fixed-Point Tool did not Propose Data Types

当定点工具不建议数据类型时进行故障排除。

Data Type Mismatch and Structure Initial Conditions

示例显示了如何用A替换结构初始条件万博1manbetxsimulink.parameter目的。

Data Type Propagation Errors After Applying Proposed Data Types

Troubleshoot when the Fixed-Point Tool proposes data types that are not compatible with the model.