Errors when using ssc_build – Invalid use of node voltage in custom Simscape component

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

回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Composite Components 的更多信息

提问:

2026-2-23

Community Treasure Hunt

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

Start Hunting!

Translated by