How can I use 'For Iterator' block to produce and display the sequence from 0 to 49 on a scope?
7 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Jun 2009
Edited: MathWorks Support Team
on 5 Nov 2020
I am trying to use 'For Iterator' block in Simulink Ports & Subsystems library to produce the sequence 0,1,2,3, ....., 49 and display those values one at a time on a scope. I am unable to see all the values, instead I just notice the final value(49) on the scope.
Accepted Answer
MathWorks Support Team
on 5 Nov 2020
Edited: MathWorks Support Team
on 5 Nov 2020
The 'For Iterator' block, when placed in a subsystem, repeatedly executes the contents of the subsystem at the current time step until an iteration variable exceeds a specified iteration limit. So it will not be able to display each individual value on scope.
For further information on the description of the 'For Iterator' block, refer to the following link:
0 Comments
More Answers (0)
See Also
Categories
Find more on Subsystems in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!