Simulink split Output Signal, Running time of Subsystem

Good Afternoon,
I am using Simulink to simulate an electric circuit.
I have to phases, a charge and a discharge-phase, from which I monitor voltage over time. The Output is e.g. a signal: 1x600
To separate the two phases i use an enable-subsystem depending on the state (charge / discharge). Sadly, the output of the enable-subsystem is the same as the complete system: e.g.
  • charge = 1x600 with values "0" beginning from e.g. 200
  • discharge = 1x600 with values "0" before e.g. 200
I would like to have:
  • charge = 1x200
  • discharge = 1x400
Does anyone know how i can resolve this? I kind of need the subsystems to have different running-times. Meaning, the running time of the discharge-subsystem should start from zero once it is enabled.
Best Regards, Florian

Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Products

Asked:

on 21 Jun 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!