Variable size array in Autocode

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

Respuestas (1)

Aravind Singh
Aravind Singh el 5 de Mzo. de 2015

0 votos

Do you have Inline Parameters selected in ConfigurationParameter->Optimization. please confirm this.

2 comentarios

Rakesh Chandrashekar
Rakesh Chandrashekar el 5 de Mzo. de 2015
Yes its enabled.
Chandrasekhar
Chandrasekhar el 5 de Mzo. de 2015
have you implemented this in stateflow?

Iniciar sesión para comentar.

Categorías

Más información sobre Simulink Coder en Centro de ayuda y File Exchange.

Preguntada:

el 25 de Feb. de 2015

Comentada:

el 5 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by