The System object™ source code controls the appearance of the block dialog box. This section maps the System object code to the block dialog box using the System Identification for an FIR System Using MATLAB System Blocks example. This example uses two System objects, one that uses default System object to block dialog box mapping, and one that uses a custom mapping.
The following figure shows how the source code corresponds to the dialog box
elements when you do not customize the dialog using the
getPropertyGroupsImpl methods. (The link to open the source code and
the Simulate using parameter appear on all MATLAB
System block dialog boxes.)
The Delay block from the System Identification for an FIR System Using MATLAB System Blocks example uses a System object that draws the dialog box using the default mapping. This block has one input and one output.
This block uses a System object that has direct feedthrough set to false (nondirect feedthrough). This setting means that the System object does not directly use the input to compute the output, enabling the model to use this block safely in a feedback system without introducing an algebraic loop. For more information on nondirect feedthrough, see Use System Objects in Feedback Loops.
For an example of a custom block dialog box, see System Object to Block Dialog Box Custom Mapping.
The LMS Adaptive block is an example of a block with a custom
header and property groups. The System object code uses the
getPropertyGroupsImpl methods from
matlab.System to customize these block dialog
The LMS Adaptive Filter block estimates the coefficients of an unknown system (formed by the Unknown System and Delay blocks). Its inputs are the desired signal and the actual signal. Its outputs are the estimated signal and the vector norm of the error in the estimated coefficients. It uses the lmsSysObj System object.
The source code for this System object also defines two input and output ports for the block.