- Save the bus objects to a MAT-file. The Bus Editor allows you to easily do this.
- Use the model's Preload function to load the bus data when the model is loaded.
Nested Structures using Custom Storage Classes RTW EC
3 views (last 30 days)
Show older comments
Hello, Could you tell me how can I configure a signal or an object in a simulink model to nest one custom class inside another without the tedious way of copying the tlc simulink file for signals and editing in the tlc lenguage? If there is no other way of doing it can anyone upload an example please.
I allready tryed to do it instead with busses but every time that i close the matlab program i lose the workspace (i know that i can restored, but that is not a portable solution for differents developers).
Thank you very much.
0 Comments
Answers (4)
Jarrod Rivituso
on 6 May 2011
Can you be more specific as to how nested bus objects is limiting for you?
Most people I've encountered achieve nested structures via nested bus objects. To make the bus objects available when the model is loaded, it is common to
Are there other needs that you have that prevent this from working for you?
0 Comments
Andres
on 9 May 2011
1 Comment
Jarrod Rivituso
on 9 May 2011
Hmm... I wonder if you are using virtual busses? If you enable the option "Output as nonvirtual bus" in a Bus , does that change things? Nonvirtual bus signals should have their data type be that of the bus object typedef.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!