- 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 (최근 30일)
이전 댓글 표시
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
답변 (4개)
Jarrod Rivituso
2011년 5월 6일
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
Andres
2011년 5월 9일
댓글 수: 1
Jarrod Rivituso
2011년 5월 9일
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.
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!