Generated S-Function
Represent model or subsystem as generated S-function code
Libraries:
Simulink Coder /
S-Function Target
Description
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.
Requirements
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.
Examples
Ports
Input
Output Arguments
Parameters
Version History
Introduced in R2011b