"ssc_build" Error while converting SPICE model to Simscape
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi everyone,
I am currently working on a full bridge amplifier, that uses the 2EDR7259X gate driver from Infineon and the SPICE model is available on their website. I changed the .lib into .cir to make it compatible, since and the code is clearly SPICE, so there shouldn't be any issues.
I am using the "subcircuit2ssc" and "ssc_build" functions to convert it to a Simscape model. This is the basic scipt I am using:
subcircuit2ssc('2EDR7259X.cir', '+GateDriver');
ssc_build GateDriver;
When I run it, I get the following errors:
Error using sscbuild (line 53)
Failed to generate 'GateDriver_lib'
Error in pm.legacy.internal.support
Error in pm.legacy.internal.support
Error in ssc_build (line 5)
[varargout{1:nargout}] = pm.legacy.internal.support('sscbuild', mfilename, varargin);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Error in Convert2EDR7259X (line 2)
ssc_build GateDriver;
^^^^^^^^^
Caused by:
'p_th_in_m40' is not defined in this scope.
• In GateDriver.two_edr7259x_gd_template (line 152)
• In GateDriver.ss_2edr7259x (line 99)
I've never worked with Simscape or did any electrical simulations in Matlab before and it's been years since I've worked with Matlab last time and I'm just getting back into it. I've been trying to resolve the error myself but I can't really find a place to start.
Any help is greately appreciated!
0 Commenti
Risposte (0)
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!