simulink-function block argument const data type
4 ビュー (過去 30 日間)
古いコメントを表示
I'm wondering how to make argument data type to const varable type when generate code.
when I generate code of simulink function block, generated function is like below
- uint8 func(uint8* u1, uint8 u2)
But I want to change u1 data type from uint8 to const uint8 in above function. what I want is
- uint8 func(const uint8* u1, uint8 u2)
How can I do this?
0 件のコメント
回答 (1 件)
Sarthak
2023 年 4 月 21 日
Hi 재민 권,
To make argument data type to const variable type or to any other type when generating code can be done using Code Interface option in the C Code tab. You can change the data types of your individiual model parameters for generating code.
Attaching a documentation link for your reference.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!