Simscape Custom Models and Components

조회 수: 2 (최근 30일)
Clayton Allen
Clayton Allen 2019년 9월 6일
댓글: Clayton Allen 2019년 9월 15일
Greetings,
I have been reading/watching content on how to model batteries via YouTube and MathWorks. However, what remains unclear to me is how to create the needed files. I am running MatLab 2019a/Simulink/SimScape/SimScape Electronics. I downloaded the models produced by Dr. Gazzari to examine the overall structure. When I create a model, I am failing to find any kind of indication on how/where to create the script file in which I can delcare the salient characteristics of the components I wish to create.
Once I do accomplish this, I will then be able to link it to my file.m in which I have created some lookup tables.
Cheers,

채택된 답변

Roshni Garnayak
Roshni Garnayak 2019년 9월 9일
There is no functionality to directly create a ssc-file. So you should use the "Save as" function in MATLAB and change the file extension to “.ssc” in order to save an ssc-file.
Another possibility is to create a copy of an existing ssc-file and change the content of it, so you can easily customize an existing component.
If you need more information about Simscape Language, then please check the following documentation: 
What Is the Simscape Language?
Simscape File Types and Structure
Creating Custom Components
  댓글 수: 1
Clayton Allen
Clayton Allen 2019년 9월 15일
I am trying to accept this answer. Sadly an error keep occuring and thus continuously asks me to refresh the page. It does not work. Thank you for your help.
Cheers

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating 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