Fixed-Point Blockset    

Simulink Model of a Feedback Design

You can run the Simulink model of the feedback design by launching the MATLAB Demo browser and selecting the Scaling a Fixed-Point Control Design demo. You can launch the browser by typing

at the command line, or by opening the Demos block found in the Fixed-Point Blockset library. Alternatively, you can access the model directly by typing its name at the command line.

The MDL-file automatically runs the M-file preload_feedback, which populates the workspace with the required parameter values. The feedback design model is shown below.

The model consists of these blocks:

Simulation Setup

Setting up the fixed-point feedback controller simulation involves these steps:

  1. Identify all design components

    In the real world, there are design components with fixed characteristics (the hardware) and design components with characteristics that you can change (the software). The main components modeled in this feedback design are the A/D hardware, the digital controller, the D/A hardware, and the analog plant.

  1. Develop a theoretical model of the plant and controller

    For the feedback design used in this tutorial, the plant is characterized by a transfer function. The characteristics of the plant are unimportant for this tutorial, and are not discussed.

    The digital controller model used in this tutorial is described by a z-domain transfer function and is implemented using a direct form realization.

  1. Evaluate the behavior of the plant and controller

    This is accomplished with a Bode plot. The evaluation is idealized since all numbers, operations, and states are double precision.

  1. Simulate the system

    The feedback controller design is simulated using Simulink and the Fixed-Point Blockset. Of course, in a simulation environment, you can treat all components (software and hardware) as though their characteristics are not fixed.


 Tutorial: Feedback Controller Simulation Idealized Feedback Design