1
\$\begingroup\$

I am trying to automate LTspice from Matlab. I am running Lt spice netlist which is creating the .raw file. But I am unable to automatically extract the polt data after that. Any solution on how to extract the netlist output with Matlab or any other way except manually clicking export as .text?

\$\endgroup\$
  • 1
    \$\begingroup\$ You could set LTspice to save .raw files as ASCII (-ascii, command line switch), but, as the manual warns, that can be extremely slow, particularly for large simulations. I have never tried this myself. The .raw files are a mixed binary form, and there's a small utility, ltsputil (IIRC, in the Yahoo LTspice Groups), that processes .raw files for various reasons. Maybe this could be used in a small script? \$\endgroup\$ – a concerned citizen Jan 15 '19 at 9:17
1
\$\begingroup\$

You can use a script to read the data of the .raw files. For Matlab, Ive used ltspice2matlab. Alternatively, for users of Python, one alternative is PySpicer.

| improve this answer | |
\$\endgroup\$
0
\$\begingroup\$

You could use the measure command to print measured values of dedicated timepoints to the sim log

Google lists this: www.researchgate.net/publication/303987589_Import_LTspice_simulation_results_in_Matlab

| improve this answer | |
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.