How to Configure simulink out-ports to generate specific argument of function?

1 visualización (últimos 30 días)
So I want to generate the code for a function where it gives the argument as shown in the image below. So what configuration should be done in simulink outports to get argument as this?
fx_im.PNG

Respuesta aceptada

stozaki
stozaki el 16 de En. de 2020
Hello Amit,
How do you use model referencing?
You can add arguments by using a model reference and setting the storage class of the output to Auto.
By the way, the next document is the contents of R2019b.
Regards,
stozaki
  2 comentarios
Amit
Amit el 14 de Feb. de 2020
Editada: Amit el 14 de Feb. de 2020
Thanks for your response.
But Model referncing anyway will create reference arguments in code. What if we don't want to use model referencing then can we do this by setting storage class to auto?
stozaki
stozaki el 17 de Feb. de 2020
Editada: stozaki el 17 de Feb. de 2020
@Amit,
I think this is a limitation of Embedded Coder.
If you do not use Model Reference, use Atomic Subsystem.
The setting at that time is Reusable Function and the storage class is Exported Global or auto storage. but argument are " * " pointer.
Regards,
stozaki

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by