When I try to generate HDL code for my model containing a For Each block in R2017a, I receive an assertion error below. How do I resolve this error?
Assertion failed: b:\matlab\src\pir_core\base_core\portmgr.cpp:340:Error: Invalid port index 2 requested when 1 is the max port index for comp foreach17a" RefNum="c18" UserName="For Each Subsystem" RTTIClass ="class pir::ForEachComp" Network="n0"/>
Best Answer