Why do I get an error when trying to use a Model block connected to a Merge block when the referenced model contains a Stateflow chart, Stateflow truth table, or Embedded MATLAB function block?

5 views (last 30 days)
I have a Model block connected to a Merge block. The referenced model contains a Stateflow chart, Stateflow truth table, or Embedded MATLAB Function block, whose output is connected to the root Outport that in turn is connected to the Merge block. Why do I get an error message that says:
The signal from 'test/Model' output port 1 is required to be persistent, hence this signal cannot be connected to a Merge block.
 

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 25 Aug 2014
This is a known limitation of Stateflow in all releases since R2007b. To work around the issue, you can insert a Signal Conversion block between the Stateflow chart, Stateflow truth table, or Embedded MATLAB Function block and the root Outport, and set its Output parameter to "Signal copy".

More Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!