9.4.1. MatLab SIMULINK
SIMULINK MatLab [10, 18].
SIMULINK . - , , , / .
9.4.2. SIMULINK
MatLab :
- SIMULINK MatLab ( 9.7);
- MatLab SIMULINK ENTER;
- OPEN FILE (mdl-) .
( 9.8).
SIMULINK , , , - .
, ( ):
Continuous ;
Discontinuities ;
Discrete - ;
Math Operations , ;
Signal & Routing ;
Sinks ;
Sources .
, Sources () . - .
, Sinks () , .
Discrete ( ) , .
( 9.9).
9.4.3.
SIMULINK .
File/New/Model . , 9.10.
2. . . 9.11 , .
3. , , , . , , : .
Transfer Fcn 9.12.
4. .
4.1. :
- ;
- , , , ;
|
|
- .
. , . .
4.2. () :
- -;
- Ctrl;
- -.
:
- ;
- , , .
5. File / Save As.
:
- ;
- ;
- -
9.4.4.
.
:
- ;
- .
.
.
:
Þ Þ .
:
Þ Þ , Þ Þ .
. , . . , .
:
- ;
- , ;
- ;
- .
, :
- ( );
- Format.
9.4.5.
.
Simulation / Simulation Parameters.
9.13.
4 :
Solver () .
Workspase I/O (/ ) MatLab.
Dianostics () .
Advanced () .
Real-Time Workshop .
, Solver, 3 .
Simulation time ( ): (Start time) (Stop time)
Simulation options ( ): (Type), (Fixed-step), (Variable-step) .
|
|
:
ode45 - 4- 5- ;
ode23 - 2- 3- ;
ode113 - ;
ode23t - ;
.
(auto).
Fixed-step (Mode): MultiTasking (), SinglTasking (), Auto ( ).
Variable-step : Max step size , Min step size , Initial step size .
Output options ( ).
:
Refine output ( ) , MatLab To Workspase. Refine factor. Refine factor = 1, .. . Refine factor = k k - .
Produce additional output ( ) .
Produce specified output only ( ) , Output times.
Simulation/Start .
, Simulation/Stop .
(Simulation/Pause) (Simulation/Continue).
, , , MatLab.
.
, 9.14 , . .
; ; . K1 = 3 1/c; t = 0.2 c; T1=0.6 c; T2=0.06 c.
.
: x=A sin (2p f t + j0), A = 0.3, f=0.5 ,
.
.
:
- Math Operations ( , ):
Sum ;
- Continuous ( ):
- Integrator
- Transfer Fcn
;
- Transport Delay ( ) ;
- Discontinuities ( ):
- Saturation -
;
- Sources ( ):
- Sin Wave -
;
- Step -
;
- Clock - ( , )
;
- Sinks ( ):
- Scope - ( , )
;
- XY Graf - ( , , Y)
;
- To Workspase - MatLab ( , MatLab)
|
|
;
- Signal & Routing ( ):
- Mux - ( )
.