Programmatically open ModelExplorer with a data dictionary entry selected?

2 vues (au cours des 30 derniers jours)
John Harris
John Harris le 18 Avr 2018
A custom library block I am working with has a simulink.bus coming out of an enabled subsystem. I want to initialize the bus data until the subsystem is enabled and producing its own data. I can do that using the enabled subsystem's outport, but I need to create an IC struct.
So, I am writing a function that will automate some of the process: creating the struct with Simulink.Bus.createMATLABStruct, and storing it in the model's data dictionary using assignin()
I don't have a list of initial values; the modelers will need to supply their own. To make this easier, I want to open the model explorer with the data dictionary open and the new struct selected. Is there any way to do this programmatically?

Réponses (0)

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by