MATLAB Answers


Simscape Customized Component Library

Asked by Arti
on 19 Sep 2013


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  
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



No products are associated with this question.

1 Answer

Answer by Sean de Wolski
on 19 Sep 2013


>>mex -setup

To set up the compiler.


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?

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.

Join the 15-year community celebration.

Play games and win prizes!

Learn more
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!