0
Error while openinf python plotting Editor


Sir/Madam,

I am trying out the 'Basic RC Circuit' mentioned in the eSim User Manual (Section 9.1.1, page 57). The schema creation, annotation, Electrical Rules Check, and Netlist Generation, and conversion to KiCad to Ngspice steps are complete. The RC Analysis and RC Source Details has been entered as mentioned in the user manual. However, on pressing the 'Simulation' icon it says "Error while opening python plotting Editor." In the message window, the following error messages are seen -

\r\n\r\n

[ERROR]: Exception Message :list index out of range

\r\n

[ERROR]: Exception generated : integer division or modulo by zero


Sir/Madam, as we are planning to use eSim in our course this semester, we will be very grateful if you kindly provide a solution to the problem.


Best regards,

Arup Baruah.



The .cir file is below:


* /home/abaruah/Work/eSim/Workspace/Test05/Test05.cir

* EESchema Netlist Version 1.1 (Spice format) creation date: Mon Jan 18 09:41:35 2016

* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N
* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0

* Sheet Name: /
1K1 Net-_1K1-Pad1_ Net-_1K1-Pad2_ R\t\t
1u1 Net-_1K1-Pad2_ Net-_1u1-Pad2_ C\t\t
v1 Net-_1K1-Pad1_ Net-_1u1-Pad2_ sine\t\t

.end


The .cir.out file is below:


* /home/abaruah/work/esim/workspace/test05/test05.cir

1k1 net-_1k1-pad1_ net-_1k1-pad2_ r
1u1 net-_1k1-pad2_ net-_1u1-pad2_ c
v1 net-_1k1-pad1_ net-_1u1-pad2_ sine(0 2 50 0 0)
.tran 10e-03 100e-03 0e-03

* Control Statements
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
.endc
.end












eSim 18-01-16, 9:59 a.m. abaruah
0
Hii,

You have given wrong Reference and field value. Please dont give reference value just fill the field as 1k or 1u for resistor and capacitor then annotate it. Please follow user manual for more details.
18-01-16, 11:54 a.m. Gaurav_Supal
sir,
     i am also getting the same problem on pressing the 'Simulation' icon it says "Error while opening python plotting Editor." i have given field values also.

I am also getting the errors like this

\r\n\r\n

[INFO]: Ngspice simulation is called : /home/eswecha/eSim-Workspace/projrc

\r\n

[INFO]: PythonPlotting is called : /home/eswecha/eSim-Workspace/projrc

\r\n

[ERROR]: Exception Message :[Errno 2] No such file or directory: '/home/eswecha/eSim-Workspace/projrc/plot_data_i.txt'

\r\n

[ERROR]: Exception Message :local variable 'alli' referenced before assignment

\r\n

[ERROR]: Exception generated : [Errno 2] No such file or directory: '/home/eswecha/eSim-Workspace/projrc/plot_data_v.txt'.


i have followed all the instructions in the manual.


the .cir file is as follows

\r\n\r\n

* /home/eswecha/eSim-Workspace/projrc/projrc.cir

\r\n


\r\n

* EESchema Netlist Version 1.1 (Spice format) creation date: Thu Feb 4 15:57:42 2016

\r\n


\r\n

* To exclude a component from the Spice Netlist add [Spice_Netlist_Enabled] user FIELD set to: N

\r\n

* To reorder the component spice node sequence add [Spice_Node_Sequence] user FIELD and define sequence: 2,1,0

\r\n


\r\n

* Sheet Name: /

\r\n

R1 in out 1k\t\t

\r\n

C1 out GND 1u\t\t

\r\n

v1 in GND sine\t\t

\r\n


\r\n

.end



and the .cir.out file is as follows

\r\n\r\n

* /home/eswecha/esim-workspace/projrc/projrc.cir

\r\n


\r\n

v1 in gnd ac 2 0

\r\n

r1 in out 1k

\r\n

c1 out gnd 1u

\r\n

.tran 0e-00 0e-00 0e-00

\r\n


\r\n

* Control Statements

\r\n

.control

\r\n

run

\r\n

print allv > plot_data_v.txt

\r\n

print alli > plot_data_i.txt

\r\n

.endc

\r\n

.end

\r\n




Please give me the solution for the above problem.


Thanking you sir,


\r\n




04-02-16, 4:04 p.m. yogi

Login to add comment


0

Sir,

Thank you for your prompt answer. The simulation is now working without any error.

Best regards,
Arup Baruah.
18-01-16, 1:07 p.m. abaruah


0
Your writing is really informative, especially because it's so meaningful and updated. Thanks for sharing this wonderful post! Your writing is really great. I’m so glad I read it. It kept me hooked the whole way through. Thanks for this information. I really appreciate the information that you have provided.
01-06-22, 6:21 p.m. jacobhue


Log-in to answer to this question.