0% found this document useful (0 votes)
180 views6 pages

Dynamic System Simulation Lab Report

scilab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
180 views6 pages

Dynamic System Simulation Lab Report

scilab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

FACULTY OF MECHANICAL TECHNOLOGY AND ENGINEERING

UNIVERSITI TEKNIKAL MALAYSIA MELAKA

CONTROL AND INSTRUMENTATION

BMKT 3743 SEMESTER 2 SESSION 2024/2025

LAB 2: MODELLING AND SIMULATION DYNAMIC SYSTEM

COURSE/GROUP SECTION

DATE

1.
NAME &
MATRIX NUMBER

Ts. MUSTAFA BIN MANAP


NAME OF INSTRUCTOR

EXIMINAR’S COMMENT VERIFICATION STAMP

TOTAL MARKS

1
Lab Assessment Rubric

Display the concept of controller and sensor elements/ transducer through learning
CLO3:
and application of the device behaviour

Very Weak

Very Good
Weak

Good
Fair
Assessment Attribute Subattribute Level 1 2 3 4 5 Weightage Score Marks
Almost ready to Ready to perform
Almost very ready to
Show readiness to perform a perform simulation simulation work and Very ready to perform
P2 (Readiness) Not ready at all perform simulation 1
simulation work work and require require minor simulation work
work
further improvement improvement

Imitate or follow instruction Not able to imitate or Able to imitate or Able to imitate or Able to imitate or follow Able to imitate or
carefully to perform a P3 (Guided Response) follow instruction follow instruction with follow instruction with instruction without follow instruction 3
simulation work carefully full guidance minimal guidance guidance carefully
Observation Application of
through simulation modern engineering
Not able to measure Able to measure the Able to measure the
work tools Measure the control system the control system control system control system Able to measure the Able to measure the
performance by using P4 (Basic Proficiency) performance and performance and performance and control system control system 4
appropriate tools require major require further require minor performance well performance very well
improvement improvement improvement

Not able to use Able to use software Able to use software


Demonstrate properly the use Able to use software Able to use software
P5 (Expert Proficiency) software and require and require further and require minor 2
of software well very well
major improvement improvement improvement

Total

%
1.0 LEARNING OUTCOMES

Understand how to model and simulate dynamic system by Xcos.

2.0 EQUIPMENT

 Computer with Windows operating system


 Scilab Software version 5.4.1 or higher
 Scientific calculator

3.0 PROCEDURE

Task 1: Simulating State Space Model Of Mass-Damper-Spring System.

1. Derive the state space model of mass-damper-spring system. It can be showed as;

This system is a very common problem to solve. Governing equation of the system is a second
order ordinary differential equation. From the Newton's second law of motion it can be derived
as;

apply Newton's second law of motion to the Figure above:

Will used in
Xcos
ẍ ẋ

2. Then create Xcos blocks that will be used in simulation as shown in system below:

5
3. In Scilab menu, click on Application > Xcos to invoke Xcos application.
4. Alternatively, insert command ‘xcos’ at Scilab Console.
5. Xcos application will be lunch immediately.

6. In Palette Browser window, select STEP_FUNCTION block and CLOCK_c blocks from
source category.
7. Repeat the step above to drag CSCOPE in sinks category.
8. In Continuous time system, select two INTERGRAL_f and in Mathematical Operations
select GAIN_f, SUMMATION and SUM_f

9. Lastly, in signal Routing select MUX.

6
10. Configure CLOCK_c block period to 0.001 and STEP_FUNCTION final value to 1

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

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

7
Questions:

a) Adjust values mass(M), damping ratio(fv) and spring constant(k) in below table
and record the output response. Give comment based on your results.

Mass(M) 1 1 1 1

Damping Ratio(fv) 0 2 4 0.2

Spring Constant(k) 1 1 1 1

b) Repeat the steps above for the system below.

Block Diagram

Mechanical System

4.0 REPORT FORMAT


a. Use provided front page for your report (1st page of this lab sheet).
b. Report should be in handwritten except front page.
c. Contents of report :
i. Introduction - briefly state and explain lab objectives and what u have done on this
lab,
ii. Result of each task - write appropriately. Support your documentation with
graph/diagram/figure/table (Draw by hand or printed).
iii. Answer all questions given.
iv. Conclusion.

-END-

You might also like