How do I create and use custom model from .ssc file?

Hi,
I'm trying to create a customized vccs.
  • Matlab version R2016b (9.1.0.441655)
  • I copied the code from Simscape - Foundation Library - Electrical Sources - VCCS
  • In the matlab editor i pasted the code and made changes. I could not save with extension .ssc so i saved with .m.
  • In the computer finder window i changed the name to ..../MATLAB/+MyPackage/+MyVCCSv1/MyVCCSv1.ssc without error.
  • Now i can open, edit and save the file MyVCCSv1.ssc without errors.
  • From the directory ..../MATLAB/+MyPackage/+MyVCCSv1/ i ran ssc_build without errors.
  • Now there is a folder sscprj added to .../+MyVCCSv1 directory.
So far so good. Now I'm stuck. I have a simscape model where i used the original foundation library block and i'd like to replace it with the custom version. How do i create a symbol from the .ssc file? How do i find and instantiate the symbol into the the simscape model?
Thanks in advance,
Susan

답변 (0개)

카테고리

도움말 센터File Exchange에서 Creating Custom Components and Libraries에 대해 자세히 알아보기

태그

질문:

2019년 3월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by