1. Detailed DescriptionThis design example will demonstrate how the Hypersignal Block Diagram or Hypersignal RIDE application can be used to implement a closed-loop control system.
A closed-loop control system can be represented by the general block diagram shown below:
Figure 1: Closed-loop control system
In this configuration a feedback component is applied together with the input R. The difference between the input and feedback signals is applied to the controller. In responding to this difference, the controller acts on the process forcing C to change in the direction that will reduce the difference between the input signal and the feedback component. This, in turn, will reduce the input to the process and result in a smaller change in C. This chain of events continues until a time is reached when C approximately equals R.
A closed-loop system is able to regulate itself in the presence of disturbance or variations in its own characteristics. In this respect, a closed-loop system has a distinct advantage over an open-loop system.
The control system in this example is governed by the following equation:
The following block functions and hierarchy blocks are used in this example:
Figure 2: Block Functions used in the Closed-Loop Control System
As shown in the figure below, the unit step response of a closed loop control system is computed by hitting the control system with a unit step input signal. The unit step is generated by a Constant Generator block which is delayed by one sample. The feedback component of the closed-loop system is represented by a Recursion block. The difference between the unit step input and the feedback component is computed by the Subtract block. This difference is then fed into the Controller which is represented by the Hierarchy Biquad hierarchy block function.
Figure 3: Unit Step Response of Closed-Loop Control System
The framesize for this implementation has been chosen to be a frame of one data sample. For display purposes a Buffer block has been used to store 20 data values at a time. When the Block Diagram worksheet has executed 20 frames, the Buffer block will release its frame of data to a Text Display block and a Single-Channel Display block.
It can be seen from both the graphical and text displays that the system is reaching a steady-state. If the worksheet is allowed to run for another 20 frames it can be shown that the system settles at a constant value of one, thereby matching the input signal.
Figure 4: Biquad Implementation of Controller
The controller hierarchy block worksheet is made up from the low-level blocks shown in the figure above. The gain parameters for this worksheet are obtained from the transfer function of the control system.