Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

使用 S-Function Builder 集成 C/C++ 代码

通过自动创建 S-Function 将您的 C/C++ 代码集成到 Simulink® 模型中

S-Function Builder 是一个 Simulink 模块,它使用您提供的设定自动集成 C/C++ 代码。S-Function Builder 还用作在使用 S-Function 的模型中生成的 S-Function 的包装器。

模块

S-Function Builder集成 C 或 C++ 代码以创建 S-Function

函数

全部展开

Simulink.SFunctionBuilder.addAdd input, output, parameter, library item, or state to S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.updateUpdate attributes for input port, output port, or parameter of S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.deleteRemove input, output, parameter, library item, or state from S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.setBuildOptionsSet build options for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.setSettingsSet settings for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.setSFunctionNameSet name of S-function for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.setTargetLanguageSet language for S-function generated using S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.setUserCodeSet code for methods of S-function generated using S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.listList inputs, outputs, parameters, library items, and states for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.getBuildOptionsGet build options for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.getSettingsGet settings for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.getSFunctionNameGet name of S-function generated by S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.getTargetLanguageGet language for S-function generated using S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.getUserCodeGet code for method of S-function generated using S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.buildBuild S-function and generate MEX file for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.generateCodeOnlyBuild S-function without generating MEX file for S-Function Builder block (自 R2022a 起)
Simulink.SFunctionBuilder.generateFMUGenerate FMU compatible with FMI 3.0 standards from C/C++ code using S-Function Builder block (自 R2023b 起)

精选示例