集成外部代码
使用自定义的固定点S函数集成外部代码。
Functions
Topics
- 数据类型支持金宝app
Lists the data types supported by the API and discusses the treatment of integers and data-type-overridden signals.
- s功能的结构
显示直接处理固定点数据类型的S功能的基本结构。
- Storage Containers
讨论用于保存模拟和代码生成中信号的容器。
- Data Type IDs
Describes the creation, assignment, and usage of data type IDs, including how to get and set information about data types in an S-function.
- Overflow Handling and Rounding Methods
Discusses the tokens you can use to define overflow handling and rounding methods in your fixed-point S-function, and describes the overflow logging structure.
- Create MEX-Files
Describes the extra steps that you need to take to create MEX-files for fixed-point S-functions.
- 获取输入端口数据类型
在S功能中,您可能需要了解不同端口,运行时参数和DWorks的数据类型。
- 设置输出端口数据类型
You may want to set the data type of various ports, run-time parameters, or DWorks in your S-function.
- 解释输入值
假设您需要在输入端口上获取信号的值,以在S功能中使用。
- Write an Output Value
Suppose you need to write the value of the output signal to the output port in your S-function.
- Determine Output Type Using the Input Type
以下来自第243至261行的示例代码
sfun_user_fxp_asr.c
gives an example of using the data type of the input to your S-function to calculate the output data type.