From cec2833a020cc843e843c454b83c10fc0abc7c34 Mon Sep 17 00:00:00 2001 From: Sumanto Kar Date: Mon, 31 Jan 2022 16:33:59 +0530 Subject: Added commands for GTK Analog Wave Viewer Added commands for GTK Analog Wave(GAW) Viewer. If GAW is installed, then eSim will run GAW commands.--- src/ngspiceSimulation/NgspiceWidget.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ngspiceSimulation') diff --git a/src/ngspiceSimulation/NgspiceWidget.py b/src/ngspiceSimulation/NgspiceWidget.py index 8114f56d..52f6b87d 100644 --- a/src/ngspiceSimulation/NgspiceWidget.py +++ b/src/ngspiceSimulation/NgspiceWidget.py @@ -51,3 +51,9 @@ class NgspiceWidget(QtWidgets.QWidget): [self.obj_appconfig.current_project['ProjectName']].append( self.process.pid()) ) + self.process = QtCore.QProcess(self) + self.process = QtCore.QProcess(self) + self.command ="ngspice -b -r " + command.replace(".cir.out",".raw") + \ + " -o " + command.replace(".cir.out",".out") + " " + command + \ + "; gaw " + command.replace(".cir.out",".raw") + self.process.start('sh', ['-c', self.command]) -- cgit