Running a Subsystem in a function as iteration in simulink

7 vues (au cours des 30 derniers jours)
Christoph
Christoph le 8 Août 2013
I have a problem with my "iteration-system". In general i'd like to iterate a value, which is calculated in a subsystem.
My function should perform the following: The first step is an interpolation at a certain point. Then, the interpolated values are outputted and transferred to a subsystem. At this subsystem the interpolated values are calculated to a new value and passed to the function as input again. Then a crash condition is checked whether the process is still to be carried out or may break and the calculated value can be output as a final value.
To add an important fact. My subsystem should only be working when it is activated. Otherwise it has to be bypassed.
So i need a way to call up the subsystem in my function, to calculate a new value.
I have to do this in simulink, so my function is a embedded matlab function.

Réponses (1)

Kaustubha Govind
Kaustubha Govind le 8 Août 2013
How about using a While Iterator Subsystem inside an Enabled Subsystem?

Catégories

En savoir plus sur Subsystems dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by