필터 지우기
필터 지우기

Can we create SImulink DataDictionary from command window through APIs.

조회 수: 3 (최근 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

채택된 답변

Donn Shull
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개)

카테고리

Help CenterFile Exchange에서 Manage Design Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by