Why can't I build simulink model for my power system? (Index error and code generation file does not exist)

조회 수: 3 (최근 30일)
Top Model Build
### Generating code and artifacts to 'Model specific' folder structure ### Generating code into build folder: C:\Users\User\OneDrive\Desktop\FYP\untitled1_niVeriStand_rtw ### Aborted due to an error in the build procedure for model: untitled1
Build Summary
Top model targets built: Model Action Rebuild Reason ===================================================================== untitled1 Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 9.9615s
Index in position 1 exceeds array bounds. Index must not exceed 66.
Component:Simulink | Category:Block diagram error

답변 (1개)

Venkat Siddarth Reddy
Venkat Siddarth Reddy 2024년 10월 5일
편집: Venkat Siddarth Reddy 2024년 10월 5일
Hi Arif,
I understand that you are facing an error while building the above Simulink model.
Please note that, in this scenario, it is difficult to troubleshoot the error message without the SLX file containing the Simulink Model.
However, from the information provided, it seems that the model is trying to access an element in the array "bounds" at the index value greater than the size of the array. Since there won't be any values at index greater than the array size, MATLAB is throwing the error to indicate the same.
To troubleshoot the issue, I would suggest you verify whether the size of "bounds" array is as intended and verify the logic where this array is being used in the Simulink Model. This should help you in identifying the scenario causing the issue.
I hope it helps!
  댓글 수: 1
Arif Rahman
Arif Rahman 2024년 10월 6일
Hellow, thank you for replying. I have attached the .slx file for version 2020b, and been trying to troubleshoot the issue but to no avail.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by