[How can I generate the return function by embedded coder]

1 回表示 (過去 30 日間)
Binh Huynh Thanh
Binh Huynh Thanh 2022 年 6 月 7 日
コメント済み: Image Analyst 2022 年 6 月 7 日
Dear All,
Currently I am using the Embedded coder to generate the code. But, I have a problem.
I used the "Simulink Function" to define the function. And I used "Function Caller" to call the function which is defined in "Simulink Function".
And as the default, the return value is define as a pointer (real_T *rty_M_Temp_Ph4) as below:
void TempMeasure_ReadFET4(real_T *rty_M_Temp_Ph4)
{
*rty_M_Temp_Ph4 = 0.0;
}
But, I would like to customize the definition function as below :
real_T TempMeasure_ReadFET4(void)
{
return (rty_M_Temp_Ph4 = 0.0);
}
Anyone can help me.
Thank you very much.
  2 件のコメント
Binh Huynh Thanh
Binh Huynh Thanh 2022 年 6 月 7 日
Please help me in this issue.
Thank you very much.
Image Analyst
Image Analyst 2022 年 6 月 7 日
If you need immediate help, your fastest way is to call the main tech support line.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeDeployment, Integration, and Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by