Issue compiling simulink software component

13 次查看(过去 30 天)
Hello,
I am going to add a dummy example where clarify my issue.
That example is created in base of an issue from our simulink component Customer (we cannot shared).
When running 'prova.slx' and try to generate code there is not problem, but when we are trying to automate that process which include the following statement.
prova([],[],[],'compile') ;
issue:
Error due to multiple causes.
Caused by:
Input data dependency violation due to function-call or action subsystems. See Subsystem Examples in
the Simulink library for valid and invalid examples of function-call and action subsystems
Input ports (1, FcnCall) of 'prova/Prova/Triggered Subsystem' are involved in the loop
Input ports (1, 2, FcnCall) of 'prova/Prova/Triggered Subsystem1' are involved in the loop
Input ports (1) of 'prova/Prova/Rate Transition4' are involved in the loop
Input ports (1) of 'prova/Prova/Rate Transition3' are involved in the loop
Input ports (1) of 'prova/Prova/Rate Transition5' are involved in the loop
Why that issue no appears such as both cases, only when launch that command?
----------------------------------------------------------------------------------------------------
MATLAB Version: 8.2.0.701 (R2013b)
MATLAB License Number: •••••
Operating System: Microsoft Windows 7 Version 6.1 (Build 7601: Service Pack 1)
Java Version: Java 1.7.0_11-b21 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
----------------------------------------------------------------------------------------------------
MATLAB Version 8.2 (R2013b)
Simulink Version 8.2 (R2013b)
Embedded Coder Version 6.5 (R2013b)
Fixed-Point Designer Version 4.1 (R2013b)
MATLAB Coder Version 2.5 (R2013b)
Simulink Coder Version 8.5 (R2013b)
Simulink Verification and Validation Version 3.6 (R2013b)
Stateflow Version 8.2 (R2013b)

回答(1 个)

Andreas Goser
Andreas Goser 2016-2-14
As an idea, you can try the commands "rtwbuild" and "slbuild".
  2 个评论
Joan Sanz
Joan Sanz 2016-3-10
Hello,
Thanks for your response. Unfortunnally we are using that statement in our scripts in order to get the datatypes of ports after compiling. We need to know why is falling or if you can provide another workaround.
Thanks in advance

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

标签

产品

Community Treasure Hunt

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

Start Hunting!

Translated by