How to programmatically modify simulink.signal object in sldd

4 vues (au cours des 30 derniers jours)
Somdut Dey
Somdut Dey le 27 Août 2020
Commenté : Sudhakar Shinde le 24 Sep 2020
Hi,
I am trying to modify datatype of exisiting simulink.signal object programmatically. I am unable to get simulink.signal object using the following code.
ddName = 'MySldd.sldd';
dicObj = Simulink.data.dictionary.open(ddName);
secObj = getSection(dicObj,'Design Data');
foundEntries = find(secObj,'-isa','Simulink.Signal');
foundEntries is returning 0.
even if I run the following code I get all the parameter object but not the signal object.
foundEntries = find(secObj)
How to acces datatype of simulink.signal object and modify it?

Réponse acceptée

Sudhakar Shinde
Sudhakar Shinde le 24 Sep 2020
Modifié(e) : Sudhakar Shinde le 24 Sep 2020
ddName = 'MySldd.sldd';
dicObj = Simulink.data.dictionary.open(ddName);
secObj = getSection(dicObj,'Design Data');
SigEntries = find(secObj,'-value','-class','Simulink.Signal')

Plus de réponses (0)

Catégories

En savoir plus sur Call C from MATLAB 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