That sure is a strange format, but I don't think there should be
numerical problems for that other program (the number of
significant digits stays the same).
I can imagine that it is a nuisance to read numbers that go all
over the place.
In NGSPICE-27 you can "set numdgt=21" and WRDATA will output
accordingly, wasting some space.
Unfortunately you can't force it to output in binary.
-marcel
Last edit: marcel hendrix 2018-02-11
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am using ngspice to simulate ciruict behaviors and save the voltage to documents using "wrdata Voltage1 V(1000002001)"
The data saved in the documents are sometimes "0.9 V" and sometimes "9.0e-1 V". Does someone know how to save the data using the format of "0.9 V".
Thank you so much,
An Zou
Do you have an example? Are you using ngspice-27?
Try manipulating
-marcel
Hi, Marcel,
Thank you so much. I am thinking about how to save data like "v(1)[n-1] = 1.0453e+00" instead of "v(1)[n-1] = 0.10453e+01".
I have to read in the data from ngspice to another program to do some calcuation, so that I hope the output format be consistant.
Thank you again,
An
That sure is a strange format, but I don't think there should be
numerical problems for that other program (the number of
significant digits stays the same).
I can imagine that it is a nuisance to read numbers that go all
over the place.
In NGSPICE-27 you can "set numdgt=21" and WRDATA will output
accordingly, wasting some space.
Unfortunately you can't force it to output in binary.
-marcel
Last edit: marcel hendrix 2018-02-11
Hi, Marcel,
Thank you so so ... much for your advice. I will try it now!
Best,
An