Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Closed-Loop Control System

53 ratings | 2.81 out of 5
Print

Overview

A closed-loop control system is one in which an input forcing function is determined in part by the system response. The measured response of a physical system is compared with a desired response. The difference between these two responses initiates actions that will result in the actual response of the system to approach the desired response. This in turn drives the difference signal toward zero. Typically the difference signal is processed by another physical system, which is called a compensator, a controller, or a filter for real-time control system applications.

Detailed Description

This 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:

Implementation

The closed-loop control system described by the equation above will be implemented in a Block Diagram simulation worksheet by using low-level block functions.

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.
53 ratings | 2.81 out of 5
Print

Reader Comments | Submit a comment »

You did not answer my question(s)i need to know what the OPERATION of a control system means please.
- alialumia_0@hotmail.co.uk - Jan 18, 2006

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).