-
I was revisiting and old project at the link below. The author updated the files to be ngspice compatible 2 years ago. I cannot reproduce the plotted data because some of the variables derived from Nutmeg equations are missing from the data file. It's not consistent what variables are missing, The screen shots show what the plots looked like prior to clicking "Simulate". "gain" is always missing. vout_db is missing from some |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
It is not a bug. We have recently redesigned the nutmeg equations. See #463 and #519. You have to select a correct simulation from the drop-down list in the simulation properties. Also keep in mind that DC became a valid simulation for Ngspice. Please remove the |
Beta Was this translation helpful? Give feedback.
-
I redid my files and got them to work except Transient wouldn't work. I then made some minor mods and all the plots but Vout disappeared. This has happened many times during editing but I can usually get the plots back. Netlist shows that Vout_dB and Vout_phase are missing from the "ac" write statement. Netlist shows that Gain is missing from the "dc" write statement. Netlist shows Vin and Vout are in the "tran" write statement but no data is plotted. Oddly plots have worked even when my Nutmeg syntax is wrong. I make a minor change in the schematic and plots disappear. I undo the change and the plots never come back. I think there is a bug causing my plots to appear and disappear. |
Beta Was this translation helpful? Give feedback.
-
There is no bug. Everything works as expected on my machine. You have assigned a wrong simulation type for gain. It should be |
Beta Was this translation helpful? Give feedback.
-
I accidently sent the wrong file above. Your answer doesn't explain why Nutmeg variables keep disappearing from the netlist after minor schematic changes that shouldn't effect anything. I am still having issues with Qucs-S not saving data and plotting Nutmeg variables after making minor changes to the schematic. When I hand edit the netlists to add plot commands with the missing variables they work fine under DuSpice. Attached are three scenarios. Schematic unaltered. Cin deleted (Cin not used). UIN_DC renamed to VIN_DC. Attachment includes unaltered schematic and netlists edited for DuSpice. Cin and UIN_DC cases work in DuSpice but not Qucs-S. Attached is a screen shot comparing unedited netlist to netlist with UIN_DC renamed to VIN_DC. Clearly variables AB_dB, AB_phase and Vout_dB are missing. |
Beta Was this translation helpful? Give feedback.
-
It's good to know I'm not going crazy. It was like chasing ghosts. A lot of schematics like this that were tested under previous versions of Qucs-S will need to be updated. It would be useful to figure out and fix why such minor changes to the schematic would cause these problems. Seems to me it has or will cause other issues. I've been seeing other issues occur that are hard to identify and document. |
Beta Was this translation helpful? Give feedback.
It is not a bug. We have recently redesigned the nutmeg equations. See #463 and #519. You have to select a correct simulation from the drop-down list in the simulation properties. Also keep in mind that DC became a valid simulation for Ngspice. Please remove the
ac.
prefixes in variables. Ngspice will not accept it. After applying these corrections the schematic works as expected.