dog915 发表于 2008-4-10 00:13

SIMULINK下建立自定义的库 急

怎么在SIMULINK下建立自定义的库,就是可以在SIMULINK LIBRARY BROWSER 下可以显示出来的(就象AEROSPACE BLOCKSET 类似的) 想先建一个空的库 然后再往里面加自己的模块。


书上说在Simulink下用File/New/Library 建 但是在SIMULINK LIBRARY BROWSER 怎么看不到啊

谢谢 急

jiang_gan 发表于 2008-4-26 00:30

回复 楼主 的帖子

Adding Libraries to the Library BrowserTo cause your own library to appear in the Library Browser:Create a directory in the MATLAB path for the
library that you want to appear in the Library Browser.Each library that you want to appear in the Library Browser must be
stored in its own directory on the MATLAB path. In other words, two libraries
cannot exist in the same directory.Create or copy the library into its directory.The directory for each library to be displayed in the Library Browser
must contain a file named slblocks.m that describes the
library to be displayed. The easiest way for you to create such a file is
to use an existing slblocks.m file as a template and edit it to describe your
library. The next two steps direct you to perform this task.Create a copy of the matlabroot/toolbox/simulink/blocks/slblocks.m file
in the library's directory.The file that you have copied is the slblocks.m file
for the standard Simulink libraries.Edit the file as necessary to specify the name,
open function, mask, and structure of your library.The comments in the slblocks.m file explain how to
specify the information about your library that the Library Browser needs.
页: [1]
查看完整版本: SIMULINK下建立自定义的库 急