how to import ltspice .asy or .lib and generate custom simulink library block?
Ältere Kommentare anzeigen
subcircuit2ssc('ACS71240.asy', '+mylib')
Error using spiceNetlist2String
Unable to access ACS71240.asy.
Error in subcircuit2ssc
Error in subcircuit2ssc (line 31)
subcircuit2ssc(netlist,target);
Antworten (1)
SANKALP DEV
am 14 Sep. 2023
Hi Ajay,
I understand that you are trying to convert a subcircuit file, ‘ACS71240.asy’ ,to an SSC file.
The error message you encountered, suggests that the ‘subcircuit2ssc’, function is unable to access the ‘ACS71240.asy’ file. Here are a few things you can check to resolve this issue:
- Firstly, ensure that the 'ACS71240.asy' file is located either in your current working directory or in a directory that MATLAB can readily access.
- If the file is in a different directory, you can add that directory to MATLAB's search path using the ‘addpath’ function. For example, if the file is in the ‘mylib’ directory, you can add it to the search path using following code.
addpath('mylib')
To know more about MATLAB functions, ‘addpath’ and ‘subcircuit2ssc’, please refer to following MATLAB documentation.
- https://www.mathworks.com/help/matlab/ref/addpath.html?s_tid=srchtitle_site_search_1_addpath
- Convert SPICE subcircuit to custom Simscape components - MATLAB subcircuit2ssc (mathworks.com)
Hope it helps.
Kategorien
Mehr zu Arduino Hardware finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!