Applying Model/Trim Command to a Simulink Model with Bus Objects at Inports/Outports
조회 수: 1 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!