ra3xdh / qucs_s

Qucs-S is a circuit simulation program with Qt-based GUI
https://ra3xdh.github.io/
GNU General Public License v2.0
867 stars 111 forks source link

Ngspice doesn't run using command line batch mode #962

Closed yuyangyumi closed 1 month ago

yuyangyumi commented 1 month ago

When I run the following command in the command line, I cannot generate the s_param_wideband_amp.dat file.

qucs-s -n -i s_param_wideband_amp.sch -o s_param_wideband_amp.dat.ngspice --ngspice --run

error

Critical: "Schematic loading error! Unknown device R" (D:\a\qucs_s\qucs_s\qucs\components\component.cpp:1809, Component* getComponentFromName(QString&, Schematic*))
Error: Could not load schematic C:\project\person\java\omuao\test\s_param_wideband_amp.sch
yuyangyumi commented 1 month ago

QUCS-S produces NGSpice Netlist without --run, but fails to return data with --run parameter. How can I correctly obtain a .dat file via the command line?

ra3xdh commented 1 month ago

It seems this CLI option was broken after simulator switching introduction at v1.1.0 I remember we did some patch fixing execution from CLI, but the simulator execution probably was not tested. Please wait for fix. There is no workaround.

ra3xdh commented 1 month ago

Similar to #639 and #642

ra3xdh commented 1 month ago

Fixed by #963. The fix will be available since the next release. You can also compile the application from source or use continuous build packages.