Simscape Customized Component Library

Hello,
I am working on a project where we have to model a microgrid. I have to model every component used in the model by customizing the library. I want to build my own component library, instead of using the standard library available in SimPower Systems. For this purpose I am using the Simscape language to build the library.
I followed the procedure given in the Simscape Language Guide, but while executing the command ssc_build(which is the command to build custom library), I get the following error message.
>> ssc_build MyThreePhaseSystem
Warning: When running 'ssc_build' from within a MATLAB package directory, there is no need to provide the package name
'MyThreePhaseSystem' as it is automatically derived from the MATLAB package directory.
Generating Simulink library 'MyThreePhaseSystem_lib' in the MATLAB package parent directory 'C:\Program Files\Matlab\R2012a\toolbox\physmod\simscape\library\m' ...
No supported SDK or compiler was found on this computer.
For a list of supported compilers, see
http://www.mathworks.com/support/compilers/R2012a/win64.html
Failed to generate 'MyThreePhaseSystem_lib'
Caused by:
Error using mex (line 206)
Unable to complete successfully.
I have downloaded the compiler and installed it in my laptop. I am using the Matlab-Student Version installed Windows 8-64-bit processor , I would like to know if I have to use any other version of Matlab other than student version and also if this is not compatible on Windows 8 platform.
Please help me in fixing this problem.
Thank you, Arti Gurunathan

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 9월 19일

0 개 추천

Run:
>>mex -setup
To set up the compiler.

댓글 수: 2

Arti
Arti 2013년 9월 24일
When I try to run the mex -setup it said that the system does not have an Microsoft SDK installed. I downloaded it from Mathworks site and tried installing it but getting an installation error. There is an error message
"Windows Installer reported no registered source locations for the WinSDKWin32Toolsproduct". I have a 64-bit system so I installed a 64-bit Matlab.
How can I fix this?
Sean de Wolski
Sean de Wolski 2013년 9월 24일
You need to download the SDK from Microsoft and I believe you need to install the .net 4 framework first. At least you used to have to.

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

질문:

2013년 9월 19일

Community Treasure Hunt

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

Start Hunting!

Translated by