Create a Simulink Library Installer

조회 수: 6 (최근 30일)
Scott
Scott 2014년 10월 2일
댓글: Scott 2014년 10월 8일
I've been looking for a method of sharing a simulink library with colleagues that makes it as simple as possible for them to install.
I tried using the MATLAB App Packager to contain the slblocks.m file and the associated libary .slx file but the Apps are not automatically added to the MATLAB search path. The MATLAB App Packager looked very promising due to it's support for version numbers.
Is there a way to create an installer for Simulink Libraries in the same way that I can install the Arduino support package or automatically add the folder to the search path on App install?

답변 (1개)

Sandip Kumar
Sandip Kumar 2014년 10월 6일
As per the documentation, need to write a 'slblocks.m' and have the library model together.
In order to have a install script, you will need to basically add the appropriate path to MATLAB path, one example I can think of is this Zumobot library installer script:
If you notice, only the library path are added correctly, and the end user just have to run a script which installs the custom library to your library browser.
Thanks, Sandip Kumar, MathWorks
  댓글 수: 1
Scott
Scott 2014년 10월 8일
Understood,
I knew I had to create the slblocks.m file and make sure that this is on the path. I had hoped that there was some mechanism to create the install script like there is for the App Packager.
Doesn't really fully answer my questions but at least I know now that I do have to manually create an install script.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by