如何使用脚本获取si​mulink模式是否​关联了sldd文件

26 次查看(过去 30 天)
Xiaoning.Wang
Xiaoning.Wang 2025-1-13
如何通过脚本获取simulink是否关联了sldd文件
如何通过脚本设置simulink关联sldd文件
以及sldd文件的相关属性
  1 个评论
Xiaoning.Wang
Xiaoning.Wang 2025-1-13
% get the Link dictionary from the model
get_param(modelName,''DataDictionary');
% Link the dictionary to the model
set_param(modelName,'DataDictionary',dictionaryName);
同时,也可以使用
get_param(modelName,''EnableAccessToBaseWorkspace');
ans= 'off', 表示使用了sldd文件
相关的help文档
doc 以编程方式将数据存储到字典中(包含了从外部文件导入sldd,从.m文件导入sldd)
doc 管理模型版本并指定模型属性

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Functions 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by