Simulink Reference    
S-Function Builder

Creates an S-function from C code that you provide

Library

User-Defined Functions

Description


The S-Function Builder block creates a C MEX-file S-function from specifications and C source code that you provide. See Building S-Functions Automatically for detailed instructions on using the S-Function Builder block to generate an S-function.

Instances of the S-Function Builder block also serve as wrappers for generated S-functions in Simulink models. When simulating a model containing instances of an S-Function Builder block, Simulink invokes the generated S-function associated with each instance to compute the instance's output at each time step.

Data Type Support

The S-Function Builder cab accept and output complex, 1-D or 2-D signals of any builtin data type except int64 and uint64.

Parameters and Dialog Box

See S-Function Builder Dialog Box in the online documentation for information on using the S-Function Builder block's parameter dialog box.


  S-Function Sign