I am doing some simulation on audi-amps using ngspice producing quite a few datafiles.
For post-processing I prefer Matlab for more flexibility.
When doing it with ngspice stand-alone with gspiceui, it produces nice results-files in a csv-format with numbers represented in scientific format with a decimal point.
And what is highly important: all data are organized in columns, which eases post-processing with other tools.
Unfortunately the integrated ngspice simulator exports csv-data differently:
- all data are organized in lines/rows.
This inhibits post-processing of bigger files (very long lines!) using exel and Matlab
- All values have the comma as decimal-point and semi-colon as separator, which requires manual post-processing additionally.
Today I tried importing big simulation files into Matlab: failed
Import into exel: failed due to too many colums.
Manual post-processing with kate(texteditor) failed: lines too long.
The gEDA-workflow (gschem, gnetlist, gspiceui, gaw) produces convenient, applicable data.
This should work out with KiCad either, which is my preferred PCB-tool,
whereas the spice capabilities can still be improved.
Would it be possible to spend some more emphasis to spice integration and fix these small issues?