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

如何通过脚本获取simulink是否关联了sldd文件
如何通过脚本设置simulink关联sldd文件
以及sldd文件的相关属性

1 Kommentar

Xiaoning.Wang
Xiaoning.Wang am 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 管理模型版本并指定模型属性

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Produkte

Version

R2022b

Gefragt:

am 13 Jan. 2025

Kommentiert:

am 13 Jan. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by