Applying Model/Trim Command to a Simulink Model with Bus Objects at Inports/Outports

2 vues (au cours des 30 derniers jours)
Florian
Florian le 29 Juil 2015
Modifié(e) : Florian le 29 Juil 2015
Hello,
I have a simple Simulink Model called "mdl_w_bus_obj.slx" containing an inport, an Integrator, and an outport. Inport and outport are defined via bus objects.
If I want to trim this model I got the error:
Error using trim_trim_alg (line 162) Model 'mdl_w_bus_obj' contains non-double or complex signals. Cannot set non-double or complex external inputs. Use Data Type Conversions
Obviously, I got the same error if I use the model command:
y = mdl_w_bus_obj(t0, x0, u0, 'outputs')
Without the bus definitions at inport and outport the trim routine works fine.
Is there a Workaround? Actually, I dont want to modify the model. Hopefully, attaching the model to this post works.
All the best and thanks for any answer,
Florian

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by