![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649995/image.png)
Brace indexing is not supported for variables of this type in Simulink
1 view (last 30 days)
Show older comments
Nathaniel Goldfarb
on 11 Jun 2021
Edited: Abhijeet Gadkari
on 11 Jun 2021
I have been having a lot of trouble building and runing simulink models with custom messages.
Nothing I seems to do works. It does not help that the error messages have no information in the them to
help trace the issues.
Right now I am trying to just build a simple publisher
My custom message is the following
simple_test/temp.msg:
int64 a
int64 b
My models is as looks has follows:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649950/image.png)
Top model targets built:
Model Action Rebuild Reason
========================================================================
test_service Failed Code generation information file does not exist.
0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 10.522s
BuildDependencies{1}
Caused by:
Brace indexing is not supported for variables of this type.
I dont understand what is causing this issue. WHAT is causing this issue? WHAT variables is it talking about? HOW can I get any better diagnoustic information?
0 Comments
Accepted Answer
Abhijeet Gadkari
on 11 Jun 2021
Edited: Abhijeet Gadkari
on 11 Jun 2021
Hello Nathaniel,
This is a known problem that was fixed in R2021a update3.
Please install R2021a update 3 and generate code again.
To deploy the code on a remote device, in Simulink toolstrip, ROS tab, select "Remote Device" option from the "Deploy to" drop-down section in CONNECT tab. You can use "Manage Remote Device" button to set the IP Address, user, password of your VM or remote device.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/649995/image.png)
Let us know if this resolved the issue.
-Abhijeet
0 Comments
More Answers (0)
See Also
Categories
Find more on Publishers and Subscribers in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!