How to solve this issue about label of interrunable variable during code generation?
15 次查看(过去 30 天)
显示 更早的评论
Hello.
I had one issue about label of interrunable variable during code generation.
This variable is the output of the 1ms task runnable and the input of the 10ms task runnable.
(Since the image cannot be inserted, the contents of the Diagnostic viewer are written.)
[Diagnostic Viewer]
Top model targets built: Model Action Rebuild Reason ===================================================================
AppCVT Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 1.064s
The call to autosar_make_rtw_hook, during the entry hook generated the following error: The signal leaving 'Output Port 2' of block 'AppCVT/AppCVT_1ms_RE_sys' must have a label since it represents an interrunnable variable. The build process will terminate as a result.
Caused by: The signal leaving 'Output Port 2' of block 'AppCVT/AppCVT_1ms_RE_sys' must have a label since it represents an interrunnable variable.
Any help on this matter would be greatly appreciated. Thank you.
5 个评论
Phani Teja
2024-1-25
编辑:Phani Teja
2024-1-25
Hello Mr. WJKIM
I have come across similar issue in Matlab 2018a version, Autosar code generation
Is the issue got fixed in new skelton model with goto block connecting between runnables ?
Could you please explain how did you add the goto block with arbitary setting, label for fixing this issue.
回答(1 个)
Hao
2024-7-2
Hello Mr. WJKIM and Mr. Teja,
I met the same issue as what you talk about. I thought i found what the case is.
''must have a label" this sentence means the line which connects 2 block with runnables, should have its own label.
Further explanation, "its own label" means the the label under the line is not inherited. You should manually create a new label for it.
As following picture shows, the labels with "<>" (in red box) are inherited and the labels without "<>" are new added.
I hope my answer can help you! Have a nice day!
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!