Represent model or subsystem as generated S-function code
Simulink Coder / S-Function Target
An instance of the Generated S-Function block represents code that the code generator produces from its S-function system target file for a model or subsystem.
The S-Function block must perform identically to the model or subsystem from which it was generated.
Before creating the block, explicitly specify Inport block signal attributes, such as signal widths or sample times. The sole exception to this rule concerns sample times, as described in Sample Time Propagation in Generated S-Functions.
Set the solver parameters of the Generated S-Function block to be the same as the parameters of the original model or subsystem. The generated S-function code operates identically to the original subsystem. For an exception to this rule, see Solver Type for Top Models with Generated S-Functions.
Input — S-function input
Output — S-function output
Generated S-function name (model_sf) — Name of S-function
model_sf (default) | character vector
The name of the generated S-function. The code generator derives the name by
_sf to the name of the model or subsystem from which the
block is generated.
Show module list — Select display module list
off (default) | on
If selected, displays modules generated for the S-function.
Introduced in R2011b