Parsing big structures to simulink fails??
Mostra commenti meno recenti
I am trying to simulate a system that requires a lot of parameters to be loaded into Simuink.
These parameters are organized in a structure of the type:
constants
---> body1
---> value1
---> value2
---> ....
---> property 3
---> value1
---> value2
---> ...
---> body2
---> ....
---> ...
The structure is quite complex but all the values are constant.
What I'm doing now is running a script that defines this structure, and then I use the Simulink.Bus.CreateObject(constants) to generate a bus object bound to a "constant" block in Simulink.
Oddly enough the Simulink.Bus.CreateObject unpacks my struct and creates many objects, from various depths of my structure.
Any idea of I could import this damned structure to simulink??
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su String 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!