combine 2 models with different time velocity

1 view (last 30 days)
Hi,
I have two model with different velocity. In my first model the simulation of 1 second(simulation time) takes 15 minutes in(real time). In my second one 100 seconds of simulation time takes only a few seconds of real time.
I integrated the second-model in the first-model with a Model-Block. So there is a communication wire, which is for data transfer.
I will read a value every 10 seconds from the second one to the first one.
The Problem:
There is different time velocities. When I start the simulation it simulates only 1 second. But the second Model simulates 1 second too although the end time is 100.
I want that the second one simulates until its end time.
I'd appreciate for some help, thanks

Answers (0)

Categories

Find more on Event Functions 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!