Minor compared to the above, but is there also a method of muting all printing to the command line? The runtime is pretty slow when running this many times due to the need of generating a reference value that I don't need and printing the "inital transient solution"
Hi Uros, Thanks again for all the help! I apologize for responding late, I had final exams the previous week. I have been able to plot, however, I am having an issue with inconsistent times when running NGSpice. Relative to the resistances of resistors, the amount of data rows (time steps in the transient analysis) changes. I would need this to not be the case, as I need to compare different runs with different resistor values. This is done without the labels of times, but with the assumption that...
Hi Uros, I seem to be having an issue with something I hope you can help me with. Running the mycircuit.cir file attached, with !cat mycircuit.cir | ngspice I get lines of the following type (time?) node#10e+00, (time?) node#10e+00 .... etc. This has clearly something to do with wrdata being misunderstood as the amount of lines of this format is based on the values given in wrdata i.e. wrdata TA1.ssv 9 will output 0.00000000e+00 9.00000000e+00 1.00000000e-11 9.00000000e+00 .. etc Further it outputs...
I have one last question about how to get the desired values. I have a simple mycircuit.cir with the ngspice full-adder and the control/wrdata as you showed above (in attachment). When running this with !cat mycircuit.cir | ngspice, it only prints a value for each selected node at time = 1. How do I get all the data for all the times in the transient analysis? Side-note: I could not run this without having a .plot statement. This seemed to output all the value I wanted, just not in the ssv format....
Thank you so much for this detailed response! This will definitely get me going - I've been wanting to use Jupyter notebooks for different projects as well, so I'm glad I'll be learning it for this purpose as well!
Thank you so much for this detailed response! This will definitely get me going - I've been wanting to use Jupyter notebooks for different projects as well, so I'm glad I'll be learning it for this purpose as well!
Thank you so much for this detailed response! This will definitely get me going - I've been wanting to use Jupyter notebooks for different projects as well, so I'm glad I'll be learning it for this purpose as well!
Hi Uros, Thank you for your response! I'm still extremely new to how NgSpice works, so I hope you'll allow me to ask for further clarification. For a selected node "A", how does the node actually work in NgSpice? Would this be a voltage variable i.e. V(99) ? Here is my attempt of doing something similar to what you described above import PySpice.Logging.Logging as Logging logger = Logging.setup_logging() from PySpice.Spice.NgSpice.Shared import NgSpiceShared from PySpice.Probe.Plot import plot from...