Issue compiling simulink software component

2 views (last 30 days)
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)

Answers (1)

Andreas Goser
Andreas Goser on 14 Feb 2016
As an idea, you can try the commands "rtwbuild" and "slbuild".
  2 Comments
Joan Sanz
Joan Sanz on 10 Mar 2016
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
Andreas Goser
Andreas Goser on 14 Mar 2016
It suggest you contact Technical Support.

Sign in to comment.

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!