Lab 5 Control

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

FAKULTI TEKNOLOGI KEJURUTERAAN

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CONTROL & INSTRUMENTATION

BMMH 3323 SEMESTER 2 SESSION 2021/2022

LAB 5: STEADY STATE ERROR IN CLOSED LOOP SYSTEM


2 BMMM 1 / 2
COURSE/GROUP SECTION
11 / 06 / 2022
DATE

1. MOHD SYAFIQ BIN ALI AHMAD B092010154


NAME OF GROUP MEMBERS
& 2. MOHD HAMIZAN BIN MOHD RIDZWAN B092010050
MATRIX NUMBER

MUSTAFA BIN MANAP


NAME OF INSTRUCTOR

EXIMINAR’S COMMENT VERIFICATION STAMP

TOTAL MARKS

Document Number Issue Number

N/A

Revision Number Total Page

1.0 INTRODUCTION
2
Defined as the difference between the input and output of a system in the limit as time goes to infinity
(i.e. when the response has reached the steady state). The steady-state error will depend on the type of
input (step, ramp, parabolic) as well as the system type (0, I, or II) . Steady-state error analysis only
applicable when the system response is stable. Unstable system cannot be analyzed for steady-state error.
It is important to check for system stability before performing a steady-state error analysis.

2.0 OBJECTIVE

I. Conducting a simulation of a closed loop system using Scilab (Xcos ) and applying G(s)
II. Evaluating steady-state error step, error and parabolic input.
III. Analyze graph pattern from steady state error step, ramp and parabolic inputs.

3.0 EQUIPMENT

I. Computer with Windows operating system


II. Scilab Software version 5.4.1 or higher
III. Scientific calculator

3.0 PROCEDURE
3
Task 1: Steady state error analysis using simulation.

1. In Scilab menu, click on Application > Xcos to invoke Xcos application.


2. Alternatively, insert command ‘XCos’ at Scilab Console.
3. Xcos application will be lunch immediately.

4. In order to get the output response for the closed loop system in below figure, activate Xcos
palette browser.

+ 𝑠+6
Input, u(t) K 𝐺(𝑠) = Output, y(t)
-
(𝑠 + 4)(𝑠 + 7)(𝑆 + 9)(𝑠 + 12)

4
5. In Palette Browser window, select STEP_FUNCTION block and CLOCK_c blocks from
source category. Set step input to 5v

6. Repeat the step above to drag CSCOPE in sinks category.


7. Right click on CLR block period, and then click on block parameters to adjust its setting as below.

8. Configure CLOCK_c block period to 0.001


9. Connect all block properly and the final model window will look like this:

10. From main menu, click on Simulation > Setup then set final integration time at 10 second
(1.0E01).
11. Run the model and observe output generated from Scope.
12. You may need to adjust graph scale by click Edit > Figure properties to get better view.
13. To pick up specific point value on graph, click Edit > Start datatip manager then click on
desired point.

4
4.0 RESULT OF EXPERIMENT

Understand how to find the steady-state error for a unity feedback system by Xcos.

Diagram 1 : Setup steady state error block in SciLab

Questions:

a) Calculate the steady-state error and record the output response. Give comment based on your
results.

Graf 1 : Steady state error and output response from SciLab

6
Calculation

From the graph obtained using Scilab ( Xcos ), it indicate the system are stable in the early ( 0
until 1 minutes ) because ramp input pattern. After that, the graph from Scilab ( Xcos ) shown
the unit step function pattern. This indicates the system are less stable.

7
a)
b) Repeat the same system for ramp inputs and parabolic inputs and calculate the steady state error for
each response.

Input Output response Steady state error

Step

This shown the system are less stable

Ramp
8
This shown the systems are stable. It have less
steady state error.
Parabolic

This shown the systems are stable. It have


less steady state error.

9
a)
b)
c) Repeat the steps above for the system below and calculate steady state error. Give your
comments.

i.

Figure : 1

Input Output response Steady state error

Step

This shown the systems are stable. It


have less steady state error.

1
0
Ramp

This shown the systems are stable. It have


less steady state error.

Parabolic

This shown the systems are stable. It have


less steady state error.

1
1
ii.

Input Output response Steady state error

Step

This shown the systems are stable. It have


less steady state error.

Ramp

1
2
This shown the systems are stable.
It have less steady state error.

1
3
1
4
Parabolic

This shown the systems are stable. It have


less steady state error.

Parabolic

This shown the systems are stable. It have


less steady state error.

1
5
5.0 CONCLUSION

Based laboratory experiment conducted in SciLab ( Xcos ), all the objective are
achieved. Students are successfully conducted a simulation of a closed loop system using
Xcos and construction of a system by applying G(s) as input. Besides that, the steady state
error, step, ramp and parabolic inputs are successfully evaluated using SciLab ( Xcos ) .
Lastly, students are able read different type of graph pattern.

1
6

You might also like