Why am I unable to use a Function Call block inside a For Iterator subsystem in Simulink 5.0 (R13) and later versions?

I am unable to use a Function Call block inside a For Iterator subsystem in Simulink 5.0 (R13) and later versions. The Function Call block is calling a function outside of the For Iterator subsystem. I was able to do this in previous versions of Simulink. When I try to do the same in Simulink 5.0 (R13) and later versions, I receive the following error message:
A function-call initiator inside iterator subsystem 'test/8.3.10/Subsystem/For Iterator Subsystem' may not call a function-call subsytem that is not contained within the iterator subsystem

 Accepted Answer

The ability to use a Function Call block inside a For Iterator subsystem was removed in Simulink 5.0 (R13) and later versions.
As a workaround, if you have a Function Call block that is calling a Function Call Subsystem, you will need to have both the Function Call block and the Function Call Subsystem within the For Iterator subsystem.

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!