Can't do stepped sweep
709 1
andyfierman 7 years ago
******BUG****** Concise problem statement: Can't find a way to do a swept value of R1. Trying to implement section 16.13.4.2 .step of ngspice manual: <a href="http://www.ngspice.com/downloads/ngspice-manual.pdf" target="_blank" rel="nofollow">http://www.ngspice.com/downloads/ngspice-manual.pdf</a> Note that spice netlist has lost indents for content of .control .... .end section. Don't know if that has any effect. Note also that simulation runs OK as a simple non-swept sim and does not report errors. .STEP R1 1k 2k 1k statement is commented out but has no effect if set to spice directive. Steps to reproduce bug: 1. Run transient simulation Results: V(boo) only shown at 2.5V. Expected results: V(boo) should be shown as 2.5V and 1.67V. Url: <a href="https://easyeda.com/file_view_step-test-01_AysKEWevN.htm" target="_blank" rel="nofollow">https://easyeda.com/file_view_step-test-01_AysKEWevN.htm</a> Browser:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36
Comments
andyfierman 7 years ago
Although most of this bug report can be ignored now, there is still a problem. There were several mistakes in my .control ... .end structure as I originally posted the circuit. They have been fixed and the sim now runs through the expected 3 steps. However, there remains a problem that only the results of the last step are shown as a transient simulation in the waveform display. The parameters of that transient simulation are the ones set in the 'Run the Document' window and are not those defined by the 'tran 1u 1m' line inside the .control ... .end structure. How to display all the stepped waveform results (for R1 = 1k, 2k, 3k)?
Reply
Login or Register to add a comment
goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow