How to import SPICE model into matlab Simulink?
Show older comments
Answers (1)
Ganapathi Subramanian R
on 10 May 2024
0 votes
Hi Biruk,
I understand that you would like to import SPICE model into Simulnk.
The 'subcircuit2ssc' function is used to convert SPICE subcircuit to custom Simscape components. Kindly refer to the below documentation to understand more about 'subcircuit2ssc' function.
Additonally, refer to the below documentation for further information regarding how to convert SPICE netlist into Simscape blocks.
I also found a relevant MATLAB Answer question similar to your query for CoolSiC MOSFET. Please find the link for the same below.
I hope this helps.
Thanks
1 Comment
SUHANYA M S
on 8 Sep 2025
Hi,
I'm trying to import a specific device "IMBG65R072M1H_L0" from a PSpice .lib file (unable to attach here) to Simulink, where I can use it as part of simulations in a larger system. I do not need to see the characteristics of the device.
Which one must be used - ee.spice.semiconductorSubcircuit2lookup or subcircuit2ssc..?
I really didn't understand how to do it. There is too much information there regarding each parameter. Is there a specific example reseource to just include rather than so much info to read?
For a start, I tried this:
I have used these lines as mentioned in the documentations :
libraryPath = ['D:\WORK FOLDER\.......\Infineon_SiC_Pspice_Models\IFX_C650V.lib'];
subcircuitName = "IMBG65R072M1H_L0";
SPICEPath = "C:\Program Files\SIMetrix850\bin64\Sim.exe"; %I don't have PSpice installed in my system.
Then, I included the line (given below) as mentioned in the link.
lookuptable = ee.spice.semiconductorSubcircuit2lookup(libraryPath, subcircuitName, "SPICEPath"= SPICEPath); % Line 5
I get an error:
"Error: File: SiC_MOSFET_Pspice_Model.m Line: 5 Column: 95
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values for equality, use '=='."
When I tried with the subcircuit2ssc command also, I got errors.
I have no clue about how to do this. please help!
Thanks.
Categories
Find more on SPICE Semiconductors 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!