Simulink Training
Simulink Training
Simulink Training
www.simpowersystem.ir
Simulink Simulink
.
.
.
Model << New << File .
.
. simulink
.
.
:
.
:
untitled .
:
. R
V .
:
1 1.5 50 .
)(Duty Cycle =50%
3 .
.
+
:
)
(...
:
) Autoscale (
. Simulink
.
.
:
:
Simulink >> Sources >> Clock
Simulink >> Sources >> Constant
Simulink >> Math Operations >> Sum
Simulink >> Math Operations >> Gain
Simulink >> Math Operations >> Math Function
Simulink >> Sinks >> XY Graph
:
Constant 3
Gain 2
Gain1 3
XY Graph x -5 5 y -150
150
x
)XY Graph (
y )XY Graph (
.
) (
] [-5 5 . << Simulation...
Configuration Parameters
:
Run :
:
Simulink >> Sources >> Constant
Simulink >> Sinks >> Display
Simulink >> Math Operations >> Sum
Simulink >> Math Operations >> Gain
Simulink >> Math Operations >> Math Function
Constant1 3
Constant2 3
Gain 5
Gain1 2
) Sum Sum
Show Name << Format (
List of signs |--+-- Icon shape rectangular
Run:
Constraint Algebraic
.
:
:
Simulink >> Sources >> Constant
Simulink >> Sinks >> Display
Simulink >> Math Operations >> Sum
Simulink >> Math Operations >> Gain
Simulink >> Math Operations >> Algebraic Constraint
:
: Ctrl+R.
:
Constant 3
Constant1 2
Gain 2
Gain1 3
Gain2 7
Gain3 5
Gain4 3
Gain5 4
Gain6 4
Display
long
Run :
.
) (
.
:
Constant << Sources << Simulink
Display << Sinks << Simulink
Sum << Math Operations << Simulink
Gain << Math Operations << Simulink
Product << Math Operations << Simulink
Divide << Math Operations << Simulink
to Real-Imag Complex << Math Operations << Simulink
to Complex Real-Imag << Math Operations << Simulink
to Magnitude-Angle Complex << Math Operations << Simulink
:
Constant i3+2 z
Constant1 i6-3 z1
Gain -1
:
Display
.
Run:
)
(
.
:
3 ) (
) ( MATLAB .
:
Step << Sources << Simulink
Scope << Sinks << Simulink
To Workspace << Sinks << Simulink
Derivative << Continuous << Simulink
Fcn Transfer << Continuous << Simulink
:
Scope Parameters 2
:
Ctrl+E :
Run:
Autoscale .
RLC
. :
: Background Color
Screen Color .
Reciprocal Sqrt Math
Operations .
: Gain Constant .
:
R R
L L
C C
L/R L/R
LC\1 LC\1
Sum
Product 3
Scope Parameters 2
Apply Documentation :
OK.
.
:
Run:
Autoscale :
) (Interpolation-Extrapolation
Simulink . ) (
:
]X = [1 , 1.5 , 1.8 , 2.2 , 2.7 , 3.3 , 3.9
]y = [ 2.434 , 2.667 , 2.738 , 2.956 , 2.904 , 2.819 , 2.708
.
:
:
Simulink >> Sources >> Clock
Simulink >> Lookup Tables >> Lookup Table
Simulink >> Sinks >> Scope
:
:
Ctrl+E :
] [0 5
0.01 .
Run:
:
Simulink >> Sources >> Clock
Simulink >> Sources >> Constant
Simulink >> Sources >> Sine Wave
Simulink >> Math Operations >> Gain
Simulink >> Math Operations >> Product
Simulink >> Continuous >> Derivative
Simulink >> Math Operations >> Math Function
Simulink >> Signal Routing >> Mux
Simulink >> Signal Attributes >> Data Type Conversion
Simulink >> Logic and Bit Operations >> Relational Operator
Simulink >> Logic and Bit Operations >> Logical Operator
Signal Processing Blockset >> Signal Management >> Switches and Counters >>
Counter
Simulink >> Sinks >> Display
Simulink >> Sinks >> Scope
:
:
-0.5 Gain
Constant 0
Constant1 0
:
Ctrl+E :
Run:
:
.
.
: ) (GHz1
).(
) (ADC .
ADC .
ADC 256 .
) 16 (.
:
Simulink >> Sinks >> Scope
Simulink >> Sinks >> Display
Simulink >> Math Operations >> Sum
Simulink >> Logic and Bit Operations >> Relational Operator
Simulink >> Logic and Bit Operations >> Logical Operator
Simulink >> Sources >> Ground
Simulink >> Sources >> Constant
Simulink >> Sources >> Signal Generator
Simulink >> Signal Routing >> Switch
16
) ( .
A/15
16 Constant
17
) ( A/16
17 Constant
.
:
1 ) P+A/16 ( ) P
( .
:
P+(2*A)/16
P+A/16 AND P+A/15
.
:
: )
(
16 16 .
:
KHz1 1 dc 0 )
-1 2(:
:
Simulink .
.
.
:
Simulink >> Sources >> Step
Simulink >> Sources >> Clock
Simulink >> Sinks >> Stop Simulation
Simulink >> Sinks >> Scope
Simulink >> Continuous >> Transfer Fcn
Simulink >> Sources >> Constant
Simulink >> Sinks >> Display
Simulink >> Logic and Bit Operations >> Relational Operator
:
Constant
Run:
1 Stop Simulation .
.
T .
FF . JK .
FF FF 1/8 1/4 1/2 1/16
.
:
Simulink >> Sinks >> Scope
Simulink >> Sinks >> Terminator
Simulink >> Sources >> Constant
Simulink >> Signal Attributes >> Data Type Conversion
Simulink >> Simulink Extras >> Flip Flops >> Clock
Simulink >> Simulink Extras >> Flip Flops >> J-K Flip-Flop
:
Clock 0.2
Scope Parameters 5
:
Axes properties
:
4 1 .
) 4 (1 4
.
.
:
Simulink >> Sources >> Constant
Simulink >> Sources >> Ground
Simulink >> Sinks >> Display
Constant1 2
Constant2 3
Constant3 4
If :
.
. :
.
. :
:
Simulink >> Sources >> Step
Simulink >> Sources >> Constant
Simulink >> Math Operations >> Sum
Simulink >> Math Operations >> Gain
Simulink >> Continuous >> Integrator
Simulink >> Signal Routing >> Bus Creator
Simulink >> Sinks >> Scope
:
Constant 0.5 .
Gain 0.5 .
Gain2 3 .
Stop time 20 .
Run :
.
.
.
. :
Simulink >> Sources >> Clock
Simulink >> Math Operations >> Sum
Simulink >> Discrete >> Memory
Simulink >> Sinks >> Scope
Simulink >> Sinks >> Display
Run:
0.2
).(
Ctrl+E Fixed-step
size 0.005 OK.
Run:
0.005). !(
)ring
.(oscillator
.
:
Simulink >> Logic and Bit Operations >> Logical Operator
Simulink >> Discrete >> Unit Delay
Simulink >> Sinks >> Scope
:
Run:
:
. .
.
NOT
)(.
.
FPGA VHDL .
. . AM .
AM .
:
Simulink >> Sources >> Constant
Simulink >> Sources >> Signal Generator
Simulink >> User-Defined Functions >> Embedded MATLAB Function
Simulink >> Sinks >> Scope
:
Constant1 0.5 .
Scope Parameters 3
.
Stop time 10 .
: Run
: OPQR
www.mathworks.ir
TUV WXZ W[X\R ]^_` abc dXc_V