Simscape Custom Models and Components
    3 views (last 30 days)
  
       Show older comments
    
    Clayton Allen
 on 6 Sep 2019
  
    
    
    
    
    Commented: Clayton Allen
 on 15 Sep 2019
            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,
0 Comments
Accepted Answer
  Roshni Garnayak
    
 on 9 Sep 2019
        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 
More Answers (0)
See Also
Categories
				Find more on Creating Custom Components and Libraries in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!