How do I change the name of a Subsystem's function in generated code?
11 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 6 de Feb. de 2019
Editada: MathWorks Support Team
el 16 de Sept. de 2021
I want to change the function signature of a Subsystem's generated function, especially the name, so that I can call it from other sections in my code.
Respuesta aceptada
MathWorks Support Team
el 2 de Sept. de 2021
Editada: MathWorks Support Team
el 16 de Sept. de 2021
It is possible to control the generated function prototype of an Atomic Subsystem. Please use the options in the Code Generation pane in the Atomic Subsystem's block parameters dialog box. To change the name, you would need to set "Function name options" to "User specified" and then enter the desired function name. There are additional options to control the function signature such as the ability to allow arguments. The following link will provide more information on these:
Please note that parameters on the Code Generation tab require a Simulink Coder or Embedded Coder license.
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!