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 次查看(过去 30 天)
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 '

采纳的回答

MathWorks Support Team
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".

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by