Main Content

Implement C/C++ Code Using S-Function Builder

Implement C/C++ code in your Simulink® block by creating S-functions automatically

S-function builder is a Simulink block that integrates C/C++ code automatically using the specifications you provide. The S-function builder also serves as a wrapper for the generated S-function in the models that use S-function.

Bloques

S-Function BuilderIntegrate C or C++ code to create S-functions

Funciones

expandir todo

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