Check that Bode magnitude bounds are satisfied during simulation
Simulink® Control Design™
This block is same as the Bode Plot block except for different default parameter settings in the Bounds tab.
Check that upper and lower magnitude bounds on the Bode response of a linear system, computed from a nonlinear Simulink model, are satisfied during simulation.
The Simulink model can be continuous-time, discrete-time or multi-rate and can have time delays. The computed linear system can be Single-Input Single-Output (SISO) or Multi-Input Multi-Output (MIMO).
During simulation, the software linearizes the portion of the model between specified linearization inputs and outputs, computes the Bode magnitude and phase, and checks that the magnitude satisfies the specified bounds.
If all bounds are satisfied, the block does nothing.
If a bound is not satisfied, the block asserts, and a warning message appears at the MATLAB® prompt. You can also specify that the block:
Evaluate a MATLAB expression.
Stop the simulation and bring that block into focus.
During simulation, the block can also output a logical assertion signal:
If all bounds are satisfied, the signal is true (
If a bound is not satisfied, the signal is false (
For MIMO systems, the bounds apply to the Bode responses computed for all input/output combinations.
You can add multiple Check Bode Characteristics blocks in your model to check upper and lower Bode magnitude bounds on various portions of the model.
You can also plot the magnitude and phase on a Bode plot and graphically verify that the magnitude satisfies 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.
When a model does not violate any bound, you can disable the block by clearing the assertion option. If you modify the model, you can re-enable assertion to ensure that your changes do not cause the model to violate a bound.
When a model violates any bound, you can use Simulink Design Optimization™ software to optimize the linear system to meet the specified requirements in this block.
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
Normal simulation mode.
The following table summarizes the Check Bode Characteristics block parameters, accessible via the block parameter dialog box. For more information, see Parameters in the Bode Plot block reference page.
|Configure linearization.||Specify inputs and outputs (I/Os).||In Linearizations tab:|
|Specify settings.||In Linearizations tab:|
|Specify algorithm options.||In Linearizations tab:|
|Specify labels for linear system I/Os and state names.||In Linearizations tab:|
|Specify bounds on the linear system for assertion.||In Bounds tab:|
|Specify assertion options (only when you specify bounds on the linear system).||In Assertion tab:|
|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|