Info
This question is closed. Reopen it to edit or answer.
How do you gate the output of a simulation block?
1 view (last 30 days)
Show older comments
I'm new to the terminology of the functions in Simulink. I have a simulation (of galaxy kinematics) that takes a lot of time to run. I'm looking for ways to speed it up. I currently have the output being branched to two sink blocks (that are plotting the 3D chart of the galaxy and velocity profiles). I suspect that plotting is probably slowing things down, so I'd like to put a gate on the simulation to update the sink objects every 100,000 iterations (or so, programmable, obviously).
Question #1: will this help speed up the simulation? Question #2: What kind of function block will update a sink only when given the proper signal (e.g. when rem(sequence, 100000) == 0)?
0 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!