Simulink Control Design™ - MathWorks

(Tuis.) #1
View a summary of the diagnostic information for these blocks, use getBlockInfo.

getBlockInfo(adv1)

ans =

Linearization Diagnostics for the Blocks:

Block Info:
-----------
Index BlockPath Is On Path Contributes To Linearization Linearization Method


  1. scdpendulum/pendulum/Saturation Yes No Exact

  2. scdpendulum/angle_wrap/Trigonometric Function1 Yes No Perturbation

  3. scdpendulum/pendulum/Trigonometric Function Yes No Perturbation


In this case, the advisor reports three potentially problematic blocks, a Saturation block
and two Trigonometric Function blocks. When you run this example in MATLAB, the block
paths display as hyperlinks. To go to one of these blocks in the model, click the
corresponding block path hyperlink.

To view more information about a specific block linearization, use getBlockInfo. For
information on the available diagnostics, see BlockDiagnostic.

For example, obtain the diagnostic information for the Saturation block.

diag = getBlockInfo(adv1,1)

diag =

Linearization Diagnostics for scdpendulum/pendulum/Saturation with properties:

IsOnPath: 'Yes'
ContributesToLinearization: 'No'
LinearizationMethod: 'Exact'
Linearization: [1x1 ss]
OperatingPoint: [1x1 linearize.advisor.BlockOperatingPoint]

This block has two diagnostic messages regarding its linearization result. The first
message indicates that the block is linearized outside of its lower saturation limit of -49,
since the input operating point is -49.05.

4 Troubleshooting Linearization Results

Free download pdf