simulation issue about Scope
2 views (last 30 days)
Show older comments
wenchao zhang
on 8 Jul 2023
Commented: wenchao zhang
on 8 Jul 2023
hello, guys,when i run the simulation, i found the scope not display the line with the time change, it keep stop at the begining, why, how to resolve
0 Comments
Accepted Answer
Satwik Samayamantry
on 8 Jul 2023
Hello, you are connecting a constant block to the scope which is expected to work as shown only. But if you want to show the signal changing with time, you should connect to a time changing signal.
More Answers (1)
Paul
on 8 Jul 2023
Hi wenchao zhang,
The Constant block, by default, has a constant sample time. For the model shown, constant sample time means that the output of the block is computed only once at the start of the simulation, as indicated by the scope. If you want to see the constant line in the scope, one way is to change the Constant block's sample time parameter to 0, i.e., continuous sample time.
See Also
Categories
Find more on Interactive Model Editing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!