Matlab-Siulink Library Build Error

Dear Sir, One of Customer is Using Matlab2018a With Target for Simulink v1.42 . Created Simulink Model as per Video but on Build Getting Error Index Exceeds array bounds. Please Suggest Error Details as follows === Model Save (Elapsed: 0.704 sec) ===

=== Model Save (Elapsed: 0.159 sec) ===
=== Build (Elapsed: 29 sec) ===

Starting build procedure for model: New_Model

Warning:Warning: PC WORX Target for Simulink license is not installed

Generating code and artifacts to ‘Model specific’ folder structure

Generating code into build folder: C:\\Users\\Administrator\\New_Model_HLLI

Build procedure for model: ‘New_Model’ aborted due to an error.

Error:One or more Outport blocks of system ‘New_Model’ are either missing or numbered incorrectly. Outport blocks must be numbered consecutively starting with 1
=== Model Save (Elapsed: 0.175 sec) ===
=== Build (Elapsed: 31 sec) ===

Starting build procedure for model: New_Model

Warning:Warning: PC WORX Target for Simulink license is not installed

Generating code and artifacts to ‘Model specific’ folder structure

Generating code into build folder: C:\\Users\\Administrator\\New_Model_HLLI

Invoking Target Language Compiler on New_Model.rtw

Using System Target File: C:\\Program Files (x86)\\PHOENIX CONTACT\\PC WORX Target for Simulink V1.42\\pxc_hlli\ tw\\pxc_hlli.tlc

Loading TLC function libraries

Initial pass through model to cache user defined code

.

Caching model source code

Writing header file New_Model_types.h

Writing header file New_Model.h

Writing header file rtwtypes.h

Writing header file multiword_types.h

Writing source file New_Model.cpp

Writing header file New_Model_private.h

Writing header file rtmodel.h

.

TLC code generation complete.

.### Writing progmeta file New_ModelProgram.progmeta

Writing source file New_ModelProgram.cpp

Writing header file New_ModelProgram.hpp

Writing New_ModelLibrary.meta.cpp-file

Writing .libmeta-file

Writing .compmeta-file

Writing .typemeta-file

Writing .dt-file

Writing source file New_Model_pcworx-hlli.cpp

Writing header file New_Model_pcworx-hlli.h

Writing IEC-61131 HLLI model datatypes

Writing IEC-61131 HLLI common datatypes

Writing IEC-61131 model interface function blocks

.### Writing source file New_Model_pcworx-cosimulation.cpp

Writing header file New_Model_pcworx-cosimulation.h

Writing header file pcworx-ext_svr.h

Writing resource file New_Model_pcworx.rc

.

Processing Template Makefile: C:\\Program Files (x86)\\PHOENIX CONTACT\\PC WORX Target for Simulink V1.42\\pxc_hlli\\tmfs\\pxc_hlli__next2016a.tmf

Build procedure for model: ‘New_Model’ aborted due to an error.

Error:Index exceeds array bounds. ---------------------------------------------------------------------------------------------------------------------------------------------- Regards Chetan

Hello, first error message in the log says " Error:One or more Outport blocks of system ‘New_Model’ are either missing or numbered incorrectly. Outport blocks must be numbered consecutively starting with 1". Could you please attach the ModelInfo.txt file from the _HLLI build directory? Greetings

Dear Sir, Please find the files in link below Address: | http://intrans.europe.phoenixcontact.com/transfer/index.jsp?id=467906828&pwd;=gpuUEbo7O3

—|—
Regards Chetan