Semiconductor Subcircuit generation from LTspice tool
2 views (last 30 days)
Show older comments
Good afternoon,
Trying to incorporate a semiconductor trough out the "ee.spice.semiconductorSubcircuit2lookup" funtion and by using the SPICEtool "LTspice" incorporated in Matlab2023a, the system is unable to find the simulator.
%% Generate lookup table data for three-terminal or 3-terminal devices from SPICE subcircuit
subcircuitFile = [matlabroot '\toolbox\physmod\elec\eedemos\applications\devicecharacteristics\ISC030N10NM6.lib'];
subcircuitName = "ISC030N10NM6_L1";
SPICEPath = "C:\Program Files\LTC\LTspiceXVII\XVIIx64.exe";
SPICETool = "LTspice";
lookuptable = ...
ee.spice.semiconductorSubcircuit2lookup(SPICETool,subcircuitFile, ...
subcircuitName, 'SPICEPath', SPICEPath, 'terminals', [1,2,3], ...
'flagIdsVgs', 0, 'flagIdsVds', 1, 'T', 27);
The error is the following:
Error using ee.internal.spice.lookuptable.generateSemiconductorNetlist
Unable to find LTspice.
Error in ee.internal.spice.lookuptable.subcircuitGeneratelookup
Error in ee.internal.spice.lookuptable.semiconductorSubcircuit2lookup
Error in ee.spice.semiconductorSubcircuit2lookup
Is this a stable funtion to use with LTSpice or is it still ongoing?
Thank you in advance,
José Miguel.
0 Comments
Answers (1)
Keshav
on 28 Jul 2023
‘SPICETool’ is a name-value argument in the ‘ee.spice.semiconductorSubcircuit2lookup’ function. Therefore, in the function call, you need to provide the name before passing the value as 'LTspice'. You can look at the function call below for reference.
lookuptable = ...
ee.spice.semiconductorSubcircuit2lookup(subcircuitFile, ...
subcircuitName,'SPICETool',SPICETool, 'SPICEPath', SPICEPath, 'terminals', [1,2,3], ...
'flagIdsVgs', 0, 'flagIdsVds', 1, 'T', 27);
You can read more about this function in the below MathWorks documentation of ‘ee.spice.semiconductorSubcircuit2lookup’
See Also
Categories
Find more on Web Services 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!