Can we create SImulink DataDictionary from command window through APIs.
2 次查看(过去 30 天)
显示 更早的评论
I wish to Automate simulink Data Dictionary creation by reading the parameters from excel and creating simulink object and then placing those objects in proper sldd files.
So far i can read data from excel,and Create simulink objects. But I have to manually add a sldd to the model and drag drop simulink objects from base workspace.
Can this Manual part be automated ?
--Thanks
0 个评论
采纳的回答
Donn Shull
2015-2-5
list = who
dictH = Simulink.dd.create('NewDictionary.sldd')
dictH.beginTransaction
for n = 1:numel(list)
if strcmp(class(eval(list{n})), 'Simulink.Parameter')
dictH.insertEntry('Global', list{n}, eval(list{n}))
end
end
dictH.commitTransaction
dictH.close
dictH.delete
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Design Data 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!