Main Content

Generated S-Function

Represent model or subsystem as generated S-function code

  • Generated S-Function block

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.

Ports

Input

expand all

See requirements.

Output Arguments

expand all

See requirements.

Parameters

expand all

The name of the generated S-function. The code generator derives the name by appending _sf to the name of the model or subsystem from which the block is generated.

If selected, displays modules generated for the S-function.

Version History

Introduced in R2011b