From: Tomaž on
Hello,

I'm doing some research on dynamics systems in Simulink, where I'm modeling differential equation systems. Because of changing conditions I'm trying to switch between different DE systems with enabled subsystems, where a subsystem is enabled or disabled depending on some conditions.
The problem I'm facing is, that a subsystem always outputs a signal, even when disabled (holds a value or reset to initial), and I get as many output signals as the number of my subsystems (velocity1, velocity2,... , velocitin). I would like to get only one output signal from all subsystems for one variable (velocity, position, ect). The output signal should be continuous no matter which subsystem outputs it. I’ve modeled the initial conditions for each subsystem with FROM and GO TO blocks to communicate in real time between subsystem, so that the initial conditions of a starting subsystems are the conditions, where the previous subsystem stopped.
So, my question is:
1) How to output a signal only when a subsystem is enabled?
2) How to combine all output signals to one and write it into one variable?
3) Any other ideas to model continuous switching between DE systems?

Thanks to all!
Tomaz