Clear Filters
Clear Filters

How to solve this issue about label of interrunable variable during code generation?

23 views (last 30 days)
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 Comments
Phani Teja
Phani Teja on 25 Jan 2024
Edited: Phani Teja on 25 Jan 2024
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.
WJKIM
WJKIM on 26 Jan 2024
This issue was resolved without using goto block.
1. Create the new skeleton model.
2. Copy and fill the used algorithm into the skeleton model.
In conclusion, i used the skeleton model as created without modification.

Sign in to comment.

Answers (1)

Hao
Hao on 2 Jul 2024 at 7:30
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!

Community Treasure Hunt

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

Start Hunting!