Main Content

La traducción de esta página aún no se ha actualizado a la versión más reciente. Haga clic aquí para ver la última versión en inglés.

Conversión iterativa a punto fijo en Simulink

Conversión de modelos de punto flotante a punto fijo mediante un flujo de trabajo guiado

Fixed-Point Tool es una herramienta que automatiza la tarea de especificar tipos de datos de punto fijo en un modelo de Simulink®. La herramienta recopila datos de rango para objetos de modelo basados en rangos de simulación, derivados o de diseño. En el flujo de trabajo Iterative Fixed-Point Conversion, la herramienta propone tipos de datos de punto fijo que aumentan la precisión y cubren el rango. Luego podrá revisar las propuestas de tipos de datos y aplicarlas de forma selectiva a los objetos del modelo. Si no se cumplen los requisitos de diseño, puede ajustar la configuración de la propuesta de tipos de datos, visualizar sus efectos e iterar hasta que el sistema cumpla con los requisitos.

Para convertir un modelo a punto fijo, consulte Iterative Fixed-Point Conversion Using the Fixed-Point Tool. Para ver un ejemplo del proceso de conversión completo, consulte Convert Floating-Point Model to Fixed Point.

El objeto DataTypeWorkflow.Converter y sus funciones de objeto asociadas son una alternativa de línea de comandos a Iterative Fixed-Point Conversion en Fixed-Point Tool.

Herramientas

Fixed-Point ToolConvert a floating-point model to a fixed-point model

Funciones

fxptdlgOpen the Fixed-Point Tool

Clases

DataTypeWorkflow.ConverterCreate fixed-point converter object
DataTypeWorkflow.findDecoupledSubsystemsGet a list of subsystems to replace with an approximation
DataTypeWorkflow.ProposalSettingsProposal settings object for data type proposals
DataTypeWorkflow.ResultObject containing run result information
DataTypeWorkflow.VerificationResultVerification results after converting a system to fixed point

Temas

Visión general del flujo de trabajo de conversión iterativa a punto fijo

Preparar el sistema para la conversión

Recopilar rangos

Proponer tipos de datos

Convertir tipos de datos

Verificar los resultados

Solución de problemas

Blocks That Do Not Support Fixed-Point Data Types

Troubleshoot blocks that are not supported for fixed-point conversion.

Best Practices for Working with the MATLAB Function Block in Automated Fixed-Point Conversion Workflows

Follow best practices and avoid unsupported MATLAB Function block features.

Best Practices for Working with Stateflow Charts in Automated Fixed-Point Conversion Workflows

Follow best practices for Stateflow® charts to avoid unexpected results.

Models That Might Cause Data Type Propagation Errors

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

Resolve Range Analysis Issues

Troubleshoot range analysis issues.

Fix 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.

Provide More Design Range Information

Troubleshoot insufficient design range information that prevents successful derived range analysis.

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

Troubleshoot when the Fixed-Point Tool does not propose data types.

Data Type Mismatch and Structure Initial Conditions

Example showing how to replace a structure initial condition with a Simulink.Parameter object.

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.