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

8 views (last 30 days)
Xiaoning.Wang
Xiaoning.Wang on 13 Jan 2025
Commented: Xiaoning.Wang on 13 Jan 2025
如何通过脚本获取simulink是否关联了sldd文件
如何通过脚本设置simulink关联sldd文件
以及sldd文件的相关属性
  1 Comment
Xiaoning.Wang
Xiaoning.Wang on 13 Jan 2025
% 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 管理模型版本并指定模型属性

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Functions in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!