I would like to export the simulation result in Xschem to text or .csv file for plotting. Any methods?
a
Ahmed Reda
12/04/2024, 6:22 AM
You can use ngspice
write
command.
for instance,
write filename.raw
will store simulation results in a .raw file that you can load and plot using xschem's
waveform reload launcher
.
r
Roel Jordans
12/04/2024, 7:21 AM
If you want to load the data from an ngspice simulation into excel you can use the
wrdata
command, that will give you a text file that excel can easily parse.
Roel Jordans
12/04/2024, 7:23 AM
Writing to a .raw file gives you a binary output. Those can also be loaded in python if you prefer that for your plotting. I've used this code in the past to read the data: https://gist.github.com/snmishra/27dcc624b639c2626137
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.