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

조회 수: 1 (최근 30일)
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

채택된 답변

stozaki
stozaki 2020년 1월 16일
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
Amit
Amit 2020년 2월 14일
편집: Amit 2020년 2월 14일
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 2020년 2월 17일
편집: stozaki 2020년 2월 17일
@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

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deployment, Integration, and Supported Hardware에 대해 자세히 알아보기

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by