Simulink library for "all" version of Simulink/Matlab

1 回表示 (過去 30 日間)
Norbert Thek
Norbert Thek 2015 年 7 月 23 日
コメント済み: Norbert Thek 2015 年 7 月 27 日
Hi
We created library to be used in Simulink (additional blocks for communication) So far so good! Until now we told the user to add the path to our lib in his Matlab/Simulink installation and everything worked fine. The problem is with the version (AFAIK 2015a) the library MUST be in the slx format,
Is there a way to generate a library only once and it works in "all" versions? or is there a trick, so it works in "most" cases?
regards

採用された回答

Norbert Thek
Norbert Thek 2015 年 7 月 27 日
Hello
The answer is more simple then first assumed..
I save two version of the library
  • MDL-Lib saved in the oldest "possible" format (eg. 2008a)
  • SLX-Lib saved in a newer Version (eg. 2013a)
If both files are in the path, older Matlab version take the mdl version and the newer take the slx. It works quite good. the only issue is with version 2012a/b because they already use the slx version but miss some features we used, so on startup you get a bunch of warnings (which can be ignored because they don't effect functionality)

その他の回答 (1 件)

Rohit Jain
Rohit Jain 2015 年 7 月 27 日
Try saving the libraries in mdl format and then it would be compatible with all previous releases. AFAIK libraries can be saved in mdl or slx format in R2015a.
  1 件のコメント
Norbert Thek
Norbert Thek 2015 年 7 月 27 日
Thanks..
I wrote an detailed answer by myself

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by