Skip to Main Content Skip to Search
Product Documentation

Check Gain and Phase Margins - Check that gain and phase margin bounds are satisfied during simulation

Library

Simulink Control Design

Description

This block is same as the Gain and Phase Margin Plot block except for different default parameter settings in the Bounds tab.

Check that bounds on gain and phase margins of a linear system, computed from a nonlinear Simulink model, are satisfied during simulation.

The Simulink model can be continuous-time, discrete-time or multirate and can have time delays. Because you can specify only one linearization input/output pair in this block, the linear system is Single-Input Single-Output (SISO).

During simulation, the software linearizes the portion of the model between specified linearization inputs and outputs, computes the gain and phase margins, and checks that the gain and phase margins satisfy the specified bounds.

During simulation, the block can also output a logical assertion signal:

You can add multiple Check Gain and Phase Margins blocks in your model to check gain and phase margin bounds on various portions of the model.

You can also plot the gain and phase margins on a Bode, Nichols or Nyquist plot or view the margins in a table and verify that the gain and phase margins satisfy the bounds.

This block and the other Model Verification blocks test that the linearized behavior of a nonlinear Simulink model is within specified bounds during simulation.

You can save the linear system as a variable in the MATLAB workspace.

The block does not support code generation and can be used only in Normal simulation mode.

Parameters

The following table summarizes the Gain and Phase Margin Plot block parameters, accessible via the block parameter dialog box. For more information, see Parameters in the Gain and Phase Margin Plot block reference page.

TaskParameters
Configure linearization.Specify inputs and outputs (I/Os).In Linearizations tab:
  • Linearization inputs/outputs

  • Click a model signal to add it as a linearization I/O

Specify settings.In Linearizations tab:
  • Linearize on

  • Snapshot times

  • Trigger type

Specify algorithm options.In Linearizations tab:
  • Enable zero-crossing detection

  • Use exact delays

  • Linear system sample time

  • Sample time rate conversion method

  • Prewarp frequency (rad/s)

Specify labels for linear system I/Os and state names.In Linearizations tab:
  • Use full block names

  • Use bus signal names

Specify bounds on gain and phase margins of the linear system for assertion.Include gain and phase margins in assertion in Bounds tab.
Specify assertion options (only when you specify bounds on the linear system).In Assertion tab:
  • Enable assertion

  • Simulation callback when assertion fails (optional)

  • Stop simulation when assertion fails

  • Output assertion signal

Save linear system to MATLAB workspace.Save data to workspace in Logging tab.
View bounds violations graphically in a plot window.Show Plot
Display plot window instead of block parameters dialog box on double-clicking the block.Show plot on block open

See Also

Gain and Phase Margin Plot

Tutorials

How To

Model Verification

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS