Special Projects on Controls Topic : Simulink

advertisement
Special Projects on Control
Topic : MATLAB Simulink
What is Simulink ?
• Simulink is a software package that enables you to model,
simulate and analyze systems whose outputs change over time
• Simulating a dynamic system is a two-step processes with
Simulink :
– create a graphical model using the Simulink model editor.
– use Simulink to simulate the behavior of the system over a
specified time span.
Starting Simulink
1. Starting MATLAB
1. Click the Simulink icon
2. Enter the simulink command
Creating a model
1. An easy example
•
Using signal generator and scope to measure a
sine wave signal
2. An example of the first order system
1
T (s) 
s2
Transient response of F.O.S.
Transient response of S.O.S.
n
T ( s)  2
2
s  2 n s   n
2
Transient response of a S.O.S.
Homework
1. Find the rise time, settling time and steady-state
error of the following systems by using MATLAB
Simulink. Assume the input signal is an unit-step
function
ps. a 是學號最後一碼
2
T (s) 
s  2a
5
T (s) 
s  5a
Homework
2. Consider a RLC circuit system
dI (t ) 1
V (t )  RI (t )  L
  I (t )dt
dt
C
1
V ( s )  RI ( s )  sLI ( s ) 
I ( s)
sC
1
I ( s) 
V (s)
sL  R  1
sC
1
Vc ( s)
LC
T ( s) 

R
1
V ( s)
s2  s 
L
LC
Homework
2. If R  12.5  , L  9.1 H and C  0.01a F
Using MATLAB Simulink to find the following
indexs when the input signal is an unit-step function
–
–
–
–
–
Maximum overshoot
Rise time
Settling time
Peak time
Delay time
ps. a 是學號最後一碼
Deadline : 12/19
Download