How to import SPICE model into matlab Simulink?

135 次查看(过去 30 天)
Hello,
How to import SPICE model of SiC Mosfet into matlab Simulink? I downloaded the spice model in .lib file from rohm.com. But I did not know how to use SiC Mosfet in simulink.

回答(1 个)

Ganapathi Subramanian R
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 个评论
SUHANYA M S
SUHANYA M S 2025-9-8,13:05
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.

请先登录,再进行评论。

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by