Fail to import Wolfspeed Discrete Mosfet with Diode PLECS Model (.xml) to MATLAB
Hello,
I've been using the SiC Mosfet with Diode .xml models on PLECS and they work perfectly. However, I plan to change my simulation to Simulink and I learned that MATLAB provides a function to import PLECS .xml model directly to Simscape MOSFET block.
I have tried to import a few discrete models for example C3M0016120D and E4MS025120U2. However, this function fails to import all Mosfet with Diode Model. This is the error that I received.
Also, I found that this function is also unable to import models that contains "lookup" function for example C4MS025120J2. This is how the lookup function is implemented in PLECS.
So far, the only models I have managed to import with ee_importDeviceParameters function are the legacy Mosfet models (separated Mosfet and body diode).
Has anyone been trying to do the same thing and faced this issue?
Thanks in advance!
Comments
-
Thank you for your post, it has been approved and we will respond as soon as possible.
0 -
Hello,
Thanks for reaching out regarding this issue.The Wolfspeed MOSFET and diode XML models were recently updated (around Nov 2025), andee_importDeviceParameters may not be able to handle this newer model format yet. If you check the ee_importDeviceParameters documentation, in R2025a it states support for importing Wolfspeed-format XML for MOSFET, Diode, and Half-Bridge models—but the import support is still limited in what model structures it can parse.
Also, the importer is mainly designed around the 3D LUT-based switching-loss approach, where switching energy (Esw) is scaled vs gate resistance (Rg) using a scaling equation. In the newer Wolfspeed PLECS models (after PLECS 4.9), switching loss is implemented using 4D LUTs for Esw (higher accuracy than 3D LUTs). Those 4DLUT structures (and “lookup”-style implementations) are not something ee_importDeviceParameters can interpret today, which is why the import fails for “MOSFET with Diode” and for models containing lookup.
Practical workaround: Use the legacy separated MOSFET + body diode XML models (since those import successfully) or implement them manually by adding the Eon(I,V), Eoff(I,V) LUTs until MathWorks adds support for the import of newer Mosfet and Diode XML format models.
Regards
0


