You are on page 1of 8

CENTRAL PHILIPPINE UNIVERSITY

COLLEGE OF ENGINEERING
JARO, ILOILO CITY, PHILIPPINES

ECE 4101

SIGNAL, SPECTRA, & SIGNAL PROCESSING

PROJECT

ELECTRICAL AND MECHANICAL SYSTEM OUTPUT RESPONSE

Name: TIO, DANIELLE ARRIZ

Course and Year: BS ECE-3

May 23, 2018


Description

This program analyzes the deflection response of a mechanical


system and the transient analysis of a RLC circuit. The program lets
you choose between a mechanical system and an electrical system and
then you can input the required values then plot the output response.
The plot is simulated from the respective block diagrams of the
electrical and mechanical systems which are developed using the D.E.
Models of the systems. Simulink is used to construct the block
diagrams and the constant values needed that were inputted in MATLAB
GUI were set as variables in the block diagrams. The values of the
variables inputted are in the current workspace and the command simset
was used to configure so that the current workspace was used to
simulate the Simulink model.

Program

Clicking the mechanical system button will show the diagram and
the input button and axes. Set the values for the unit force, spring,
damper, and mass and then click the ‘Plot Deflection Response’ button
to plot.

CENTRAL PHILIPPINE UNIVERSITY


Clicking the electrical button will show the RLC circuit diagram
and edit boxes. Input the values for the resistor, inductor,
capacitor, and input voltage and then click the ‘Plot Output Response’
button to plot.

D.E Model
The D.E. Model of the mechanical system:
From the free-body diagram:

Fk
Fm F (u(t))
MASS
Fb

The equation of motion is:


F=Fk+Fm+Fb
D.E Model is:

̈ =𝐹 −
𝑥(𝑡)
𝑘
𝑥(𝑡) −
𝑏 ̇
𝑥(𝑡)
𝑚 𝑚 𝑚

CENTRAL PHILIPPINE UNIVERSITY


The D.E. Model of the electrical system:

Using KVL:
Vin-Vr-VL-Vc=0
Vc=Vo
𝑑2𝑖
Vin-i(R)-L𝑑𝑡2 − 𝑉c=0
𝑉𝑖𝑛 𝑅 1
𝑉𝑐̈= 𝐿𝐶 − 𝐿 𝑉𝑐̇ − 𝐿𝐶 𝑉𝑐

Simulink

I used Simulink to simulate the D.E. models of the mechanical and


electrical system. I then invoked it to MATLAB GUI in order to plot
the output responses.

This is the Simulink Model of the mechanical system.

Simulink Model of the electrical system.

CENTRAL PHILIPPINE UNIVERSITY


Tags and Callbacks
mechsys

pushbutton2

m3

k3
axes2
f3

b3

plot3
elecsys

res pushbutton4

induc

cap

vin
axes3

pushbutton3

CENTRAL PHILIPPINE UNIVERSITY


CENTRAL PHILIPPINE UNIVERSITY
CENTRAL PHILIPPINE UNIVERSITY
Commands and Syntax Used

handles- accesses tag name

set-sets the named properties to the specified values

str2num- converts string to number

axes-create axes graphics object

options=simset(‘SrcWorkspace,’current’)- configure the options so


that the current workspace is used in simulating the model

sim(‘modelname’,[],options)- sim command simulates the simulink


model name, ‘[]’ is an array with the start and stop time from
within the simulink model, ‘options’ is configured from simset

plot-plots the data from Simulink

CENTRAL PHILIPPINE UNIVERSITY

You might also like