- execute bus object definition file.
- Simulate model.
Using complex structure in simulink constant block
3 views (last 30 days)
Show older comments
Sergey Kasyanov
on 17 Jan 2020
Commented: Sergey Kasyanov
on 20 Jan 2020
Hello,
I know that there is way to pass structure to simulink model as bus object but what should I do if i need to pass complex structure with structures as fields?
Example of structure:
Structure.A.a=1;
Structure.B.a=2;
Are there any another way to pass complex set of data to simulink model without accessing it to block parameters?
0 Comments
Accepted Answer
stozaki
on 18 Jan 2020
Edited: stozaki
on 18 Jan 2020
Hello,
Please try attached model.
MathWorks dcoumentation : Simulink.Bus.createMATLABStruct
Regards,
stozaki
3 Comments
stozaki
on 20 Jan 2020
Thank you for checking.
I cannot describe future releases in MATLAB Anser. We appreciate your understanding.
I understand your opinion that scripting is complicated.
Bus nested can be created graphically using the Bus Editor. You can automatically generate a bus definition file from the Bus Editor.
Regards,
stozaki
More Answers (0)
See Also
Categories
Find more on Composite Interfaces 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!