math-crunching
ad1
Saturday, December 5, 2015
Get List Of All Simulation Time Of Simulink
Use
Clock
block.
Show Simulink Sample Time Legend
in Simulink, press
Ctrl-j
Simulink Variable Step Simulation
For Simulink variable step simulation, the
Max step size
option is by default set by:
so, e.g. if start time is 0 and stop time is 10, then, the default (auto) Max step size is 0.2s
Friday, December 4, 2015
Inactive Chart & Active Chart
Inactive
Chart:
Chart has no active
states
When a Simulink model first triggers a Stateflow chart, the chart is
inactive
;
Active
Chart:
Chart has
active
states
After the chart has been triggered the first time by a Simulink model, it is an
active
chart.
Thursday, December 3, 2015
Check State Activity (Stateflow)
Use the
in
operator
to check if a state is active, can be used in state actions and transitions.
Syntax
in
(S)
where S is a fully qualified state name
The
in
operator
is true and returns a value of
1
whenever state S is
active
; otherwise, it returns a value of 0.
Watch Data In Stateflow Debugger (stateflow)
Enable/Disable Stateflow Animation
Configuration --> Simulation Target --> MATLAB and Stateflow
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)