声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1368|回复: 1

[基本模块类] SIMULINK下建立自定义的库 急

[复制链接]
发表于 2008-4-10 00:13 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

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


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

谢谢 急
回复
分享到:

使用道具 举报

发表于 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.
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-11-29 04:39 , Processed in 0.058588 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表