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

8 vues (au cours des 30 derniers jours)
Xiaoning.Wang
Xiaoning.Wang le 13 Jan 2025
Commenté : Xiaoning.Wang le 13 Jan 2025
如何通过脚本获取simulink是否关联了sldd文件
如何通过脚本设置simulink关联sldd文件
以及sldd文件的相关属性
  1 commentaire
Xiaoning.Wang
Xiaoning.Wang le 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 管理模型版本并指定模型属性

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by