Main Content

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

使用 S-Function Builder 实现 C/C++ 代码

通过自动创建 S-Function 在 Simulink® 模块中实现 C/C++ 代码

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
Simulink.SFunctionBuilder.updateUpdate attributes for input port, output port, or parameter of S-Function Builder block
Simulink.SFunctionBuilder.deleteRemove input, output, parameter, library item, or state from S-Function Builder block
Simulink.SFunctionBuilder.setBuildOptionsSet build options for S-Function Builder block
Simulink.SFunctionBuilder.setSettingsSet settings for S-Function Builder block
Simulink.SFunctionBuilder.setSFunctionNameSet name of S-function for S-Function Builder block
Simulink.SFunctionBuilder.setTargetLanguageSet language for S-function generated using S-Function Builder block
Simulink.SFunctionBuilder.setUserCodeSet code for methods of S-function generated using S-Function Builder block
Simulink.SFunctionBuilder.listList inputs, outputs, parameters, library items, and states for S-Function Builder block
Simulink.SFunctionBuilder.getBuildOptionsGet build options for S-Function Builder block
Simulink.SFunctionBuilder.getSettingsGet settings for S-Function Builder block
Simulink.SFunctionBuilder.getSFunctionNameGet name of S-function generated by S-Function Builder block
Simulink.SFunctionBuilder.getTargetLanguageGet language for S-function generated using S-Function Builder block
Simulink.SFunctionBuilder.getUserCodeGet code for method of S-function generated using S-Function Builder block
Simulink.SFunctionBuilder.buildBuild S-function and generate MEX file for S-Function Builder block
Simulink.SFunctionBuilder.generateCodeOnlyBuild S-function without generating MEX file for S-Function Builder block