Why do I receive an error using Stateflow 5.0 (R13) to generate a function-call for a function-call subsystem in Simulink 5.0 (R13)?

5 views (last 30 days)
Why do I receive an error using Stateflow 5.0 (R13) to generate a function-call for a function-call subsystem in Simulink 5.0 (R13)?
I have a Stateflow diagram that generates function-calls to a function-call subsystem in my Simulink model. When I update the diagram or try to simulate the model, I receive the following error:
Invalid "function-call" connection
Stateflow Simulink Interface Error: Function-call trigger port of 'mymodel/Subsystem' must be driven by port 0 of S-function block 'mymodel/Chart/ SFunction '

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This error can occur if your function-calls from Stateflow are defined as data rather than events. To correct this, you should create new events using the Stateflow Explorer. The scope property must be set as "Output to Simulink" and the trigger property must be set to "Function Call".

More Answers (0)

Categories

Find more on Schedule Model Components 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!