Variable size array in Autocode

조회 수: 3 (최근 30일)
Rakesh Chandrashekar
Rakesh Chandrashekar 2015년 2월 25일
댓글: Chandrasekhar 2015년 3월 5일
Hi, I am implementing a model which contains Variable size array(Depends on System Constant), when I am generating code I am getting hard coded inex( Subsystem_Y.Out1[3] = Subsystem_B.Assignment[3]) , in my Generated code in need a variable like Arry instead of hardcoded '3'.
when I generate code it should come like
Subsystem_Y.Out1[Arry ] = Subsystem_B.Assignment[Arry ]
instead of
Subsystem_Y.Out1[3] = Subsystem_B.Assignment[3])
please let me know how can we model it or provide Dimensions in Variable form

답변 (1개)

Aravind Singh
Aravind Singh 2015년 3월 5일
Do you have Inline Parameters selected in ConfigurationParameter->Optimization. please confirm this.
  댓글 수: 2
Rakesh Chandrashekar
Rakesh Chandrashekar 2015년 3월 5일
Yes its enabled.
Chandrasekhar
Chandrasekhar 2015년 3월 5일
have you implemented this in stateflow?

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by