Nested Structures using Custom Storage Classes RTW EC
Mostra commenti meno recenti
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.
Risposte (4)
Jarrod Rivituso
il 6 Mag 2011
1 voto
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
- 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.
Are there other needs that you have that prevent this from working for you?
Andres
il 9 Mag 2011
0 voti
1 Commento
Jarrod Rivituso
il 9 Mag 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.
Andres
il 7 Giu 2011
0 voti
Andres
il 15 Giu 2011
Categorie
Scopri di più su Load Signal Data for Simulation in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!