I am running a simulation that contains among other things a subsystem (or referenced model) that is a simulation by itself and that needs to be run fully at certain times before resuming the main simulation.
Basically, at time t the main simulation needs the outputs of the subsystem. The subsystem is then triggered and runs a simulation for 6 seconds (the subsystem simulation is time dependent). Then the main simulation uses the outputs of the subsystem. The problem here is that when the main simulation resumes, it should resume at time t+ts (sampling time) and not t+6s... So the subsystem should run on a kind of virtual clock.
Is this somehow possible? If not, what are the alternatives?
Thanks in advance for your help!!!
Fabien