Block IO Outport Code Generation

I have a s function with output port. The output of the port is stored as Block Signals (auto storage) and its defined by function \rtw\c\tlc\mw\commonhdr_blkiolib.tlc
How to change the output port character not to generate this temporary variable?

3 comentarios

Kaustubha Govind
Kaustubha Govind el 3 de Mayo de 2013
Did you want the output to reuse the input buffer?
Anand Rangaramu
Anand Rangaramu el 7 de Mayo de 2013
I could change the behavior by adding below functions. Not the best solution but improved memory by lot
ssSetOutputPortReusable(S, 0, 1)
ssSetInputPortOverWritable(S, 0, 1);
Kaustubha Govind
Kaustubha Govind el 7 de Mayo de 2013
Yes, that is what I was going to suggest. Could you explain what your ideal solution would be?

Iniciar sesión para comentar.

Respuestas (0)

Categorías

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

Etiquetas

Preguntada:

el 3 de Mayo de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by