Errors when using ssc_build – Invalid use of node voltage in custom Simscape component
Show older comments
Hello everyone,
I am trying to generate a Simulink library from custom Simscape components using ssc_build, but I am encountering compilation errors.
Context
I am converting a SPICE GaN FET model (EPC device) into a Simscape component and building the library with:
ssc_build EPCGaNLibrary
The library generation fails with the following error:
Generating Simulink library 'EPCGaNLibrary_lib' in the current directory
'C:\Users\PC\Desktop\LLC\Simulink_LLC\Article_2\EPCGaNLibrary' ...
Error using ssc_build
Failed to generate 'EPCGaNLibrary_lib'
Error in spice_to_ssc (line 5)
ssc_build EPCGaNLibrary
Caused by:
Invalid use of value 'drain.v'. All entities referenced in this expression must be valid parameters.
• In EPCGaNLibrary.EPC2071 (line 157)
• In EPCGaNLibrary.EPC2071 (line 152)
Thank you in advance for your help.

Best regards,
Souhail
Answers (0)
Categories
Find more on Choose and Parameterize Blocks 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!