How to create a copy of a standard simscape block that i can modify equations

4 ビュー (過去 30 日間)
Eric D
Eric D 2013 年 5 月 10 日
コメント済み: Steven 2017 年 1 月 30 日
Hi all,
I would like to modify the rotational electromechanical converter block, found in the foundation library (electrical -> electrical elements) and then save it as a new block.
I have found the mathworks help and tutorials to not simply address this. they dive into creating your own libraries, etc.
Does anyone have a list of steps to do this?
Thanks!!!!!
Eric

回答 (2 件)

Eric D
Eric D 2013 年 6 月 6 日
you can follow this workflow:
1. Open the block dialog box and click the "View source for Name" link. 2. Copy and modify the source, as desired, and save the resulting .ssc file in a package directory on your machine. 3. Run ssc_build on this package directory.
For details on how to package your files and how to run the ssc_build command, see http://www.mathworks.com/help/physmod/simscape/ref/ssc_build.html
Note that the "View source for Name" link is available only for the blocks in Simscape Foundation library. Blocks in add-on products (such as SimDriveline, SimElectronics, etc.) do not have this link.
Thank you, Helen Eventov Senior Technical Writer
  1 件のコメント
Steven
Steven 2017 年 1 月 30 日
What if the component doesn't have a view source for name link?

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


pietro
pietro 2013 年 6 月 6 日
Hi Eric,
you should check the simscape language manual. Read the second chapter.
cheers
Pietro

カテゴリ

Help Center および File ExchangeCreating Custom Components and Libraries についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by