Code Generation: Subsystems cannot have the same name caused by Matlab function
17 ビュー (過去 30 日間)
古いコメントを表示
Code generation: I have an issue regarding generating code from an atomic subsystem which contains a Matlab function. When I try to reuse the subsystem, I receive an error saying that the two subsystems cannot have the same name. This is definitely caused by the Matlab function, because if I comment it, I recevie no such error. Can I change the configuration of the Matlab function so I can resolve this error or is my only solution to remove the Matlab function? If there is a method, could you please help me?
0 件のコメント
回答 (2 件)
René Pätznick
2021 年 7 月 16 日
The function name '$N$R' for code generation in subsystem '...' is not a valid function name.
I got this message when using the placeholder within the library
0 件のコメント
Chidvi Modala
2020 年 1 月 27 日
You may need to specify Unique Function Interface Names
Each function interface corresponding to the same reusable library subsystem must have a unique name. To specify a unique name, follow these steps:
- In the Subsystem block parameters dialog box, on the Code Generation tab, set the Function name options parameter to User specified.
- For the Function name parameter, specify the $R and $N tokens. The $R token represents the function interface name. The $N token represents the subsystem name.
- In the Create Function Interface dialog box, for the Name parameter, specify a name that describes the context.
- Set the File name option parameter to Auto or Use function name.
2 件のコメント
参考
カテゴリ
Help Center および File Exchange で Schedule Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!