Editing default simulink libraries

조회 수: 5 (최근 30일)
Jonathan Adams
Jonathan Adams 2016년 2월 1일
댓글: Jonathan Adams 2016년 2월 1일
I'm running version 2013b and I'd like to modify the default Simulink libraries for styling and ease of use. An example of this is input and output port colors (green for input, red for output) or removing the data limiting in the default Simulink scopes. One way I can edit them is to manually change the simulink.slx and simviewers.mdl files within the MATLAB folder structure, but this requires administrative permissions on the files. Is there another way to edit these kinds of properties in the default libraries?

답변 (1개)

Ilham Hardy
Ilham Hardy 2016년 2월 1일
편집: Ilham Hardy 2016년 2월 1일
Is that even possible/allowed?
What I usually do is using script to give the model "make-over" by using find_system(),
list all the specified blocks and edit them using set_param() in the for-loop..
  댓글 수: 1
Jonathan Adams
Jonathan Adams 2016년 2월 1일
In theory this would work for some of the styling changes, and honestly making a custom default library would probably work for styling/mask parameter changes to default blocks. This solution doesn't work for attaching a viewer to a signal. (right click signal -> Create and Connect Viewer -> Simulink -> Scope)
This scope isn't the same as the scope block in the "Sinks" library and resides in a different library file. (simviewers.mdl) If you've ever wanted to see more than the default limited number of data points you have to manually deselect this in the scope properties every time you attach a scope.
In version 2010a all of these libraries were available for modification, but in 2013b the user's permissions were restricted to read and execute. An administrator must grant the user access to modify the files. I can understand why this would be restricted; I wondered if anyone knew a way within MATLAB to change library defaults.

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

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by