ТАУ пособие
.pdf. 14.
,
, .
,
, .
,
,
.
Undo Redo
( , ,
.).
Undo – .
Edit. Redo
).
Format ( ,
)
.
:
1):
31
Font –
.
Text alignment –
.
Flip name – .
Show/Hide name – .
2):
Foreground color –
.
Background color – .
Screen color – .
3):
Flip block –
.
Rotate block – 900 .
Show drop shadow – .
Show port labels – .
4):
Library link display – .
Sample time colors – .
Wide nonscalar lines –
.
Signal dimensions – .
Port data types – .
Storage class – , ,
Real-Time Workshop.
Execution order –
.
.
32
Simulation/Parameters.
.15.
. 15.
4 :
Solver ( ) – .
Workspace I/O ( ) –
MATLAB.
Diagnostics ( ) –
.
Advanced ( ) –
.
, Solver.
( . 15): Simulation time (
, , ), Solver options
), Output options ( ).
Simulation time ( ).
(Start time)
(Stop time) . ,
33
, .
, . Solver options ( ).
(Type) .
Type : c (Fixedstep) (Variable-step) . , Variablestep , a Fixedstep - .
. (discrete)
.
.
(Variable-step) (Fixed-step) , ,
,
.
MATLAB.
Type ,
. Fixed-step
Fixed-step size (
)
( . . 16).
(auto).
auto
, (
).
34
. 16. Solver
Fixed-step
(Mode). Mode
:
MultiTasking ( ) – ,
,
.
, .
SingleTasking ( ) –
,
.
Auto ( ) – Simulink
MultiTasking
,
SingleTasking
, ,
.
Variable-step
:
35
step size – .
(auto)
(SfopTime – StartTime)/50.
,
( ) .
.
in step size – .
Initial step size – .
:
(Relative tolerance) (Absolute tolerance).
10-3 auto. Output options ( )
Solver
(Output options).
: Refine output ( ) –
,
MATLAB
Workspace.
Refine factor, .
Refine factor 1, ,
Dt = 1 (
:). Refine factor 2,
,
, 3 – . . Refine factor
Produce additional output ( ) –
; (
36
Output times) ,
.
(Dt) 1.
Output times
.
Produce specified output only (
) –
, Output times
).
,
MATLAB
, Workspace I/O ( .17).
. 17. Workspace I/O
3 :
Load from workspace ( ).
Input ( ) ,
,
MATLAB. Initial State
)
37
,
. ,
Input Initial State,
In (
Sources).
Save to workspace ( ) –
MATLAB .
Save options ( ) –
.
Limit rows to last ,
(
).
, . Decimation
)
( Refine factor Solver).
Format ( )
.
Array ( ), Structure ( ), Structure With Time ( –
”).
Diagnostics ( . 18)
, Simulink
MATLAB,
.
,
Simulink
, MATLAB.
Diagnostics.
38
,
Action ( ,
):
None – ,
Warning –
,
Error –
.
.
. 18. Diagnostics
Simulation/Start. .
,
Simulation/Stop .
(Simulation/Pause) (Simulation/Continue).
,
, ,
MATLAB.
39
2.1.9 Simulink
Sources ( )
:
1) Constant
: .
:
Constant value – .
Interpret vector parameters as 1-D –
( ).
Simulink.
.
, ,
.
. 19
Display.
. 19. Constant
2)Sine Wave
:
, , .
40