MATLAB Answers

How to make a new Simscape model in ".ssc" File.

조회 수: 61(최근 30일)
Yuji Ito
Yuji Ito 9 Oct 2017
Answered: Kostas 20 Oct 2019
I want to customize three phase pmsm model.
Especially, I want to change Stator dq-axis Inductance,Ld,Lq from fixed value to Table Data.
I tried to make this Simulink model to change Permanent Magnet Synchronous Motor Model offered Mathworks inc. to My customized model, but I could only save ".ssc" file and I couldn't make new Simscape Simulink model.
Please teach me how to make a new Simulink Model from ".ssc" file.

  댓글 수: 1

로그인 to comment.

답변 수 (3)

Yuji Ito
Yuji Ito 26 Jan 2018
thank you for your kind answer. But I couldn't understand the page what you suggested.
There are a lot of example how to write .ssc file, but There is no way how to make new .ssc file and how to convert sourcefile to simulink-simscape model.
I want to know how to make simulinkmodel.

  댓글 수: 0

로그인 to comment.


Chris Matthews
Chris Matthews 14 Jan 2019
Hopefully OP solved their issue by this time, but I came across this through google with the same question.
I still don't know if there's any single button to click to create a new (empty) .ssc file, but I was able to make one by simply creating a new script, clicking "Save As", and manually changing the extension to .ssc

  댓글 수: 0

로그인 to comment.


Kostas
Kostas 20 Oct 2019
Well.. I was running into the exact same problem as @Yji Ito and @Chris Matthews run into. After experimenting I managed to get the following:
  1. Create a foler with its name being +MyPackage. This folder has to be in a matlab filepath.
  2. Create a blank text file (using windows's notebook or anything similar)
  3. Change the extension of the text file to .ssc
  4. Now the icon of the text file has changed and once you click on it, it opens in matlab. So you can use the editor to write code.
  5. To use my component in the simulation I used a Simscape Component block.
I found that the above worked for me.

  댓글 수: 0

로그인 to comment.

이 질문에 답변하려면 로그인을(를) 수행하십시오.