saving . . . saved getting error in ngspice has been deleted. getting error in ngspice has been hidden .
getting error in ngspice
Title
Question
not getting output



Error: bad v() syntax
Error: bad v() syntax
Error: bad v() syntax
ngspice 1 -> 

eSim Simulating-an-Astable-Multivibrator 09-10 min 20-30 sec 30-04-20, 10:48 a.m. skibrar

Answers:

can you please post the entire netlist here ( cir.out file of the project)
30-04-20, 10:56 a.m. Saurabhb17
 c:\users\skibr\documents\esim-workspace\astable_multivibrator\astable_multivibrator.cir

.include BC547B.lib
.include LED.lib
q2 net-_c2-pad1_ net-_c1-pad2_ gnd BC547B
d1 net-_d1-pad1_ net-_c1-pad1_ LED
v1 net-_r1-pad1_ gnd  dc 9
* u2  net-_c2-pad1_ plot_v1
q1 net-_c1-pad1_ net-_c2-pad2_ gnd BC547B
r1  net-_r1-pad1_ net-_d1-pad1_ 1k
r2  net-_r1-pad1_ net-_c1-pad2_ 68k
r3  net-_r1-pad1_ net-_c2-pad2_ 68k
r4  net-_r1-pad1_ net-_d2-pad1_ 1k
d2 net-_d2-pad1_ net-_c2-pad1_ LED
* u1  net-_c1-pad1_ plot_v1
* u3  net-_r1-pad1_ plot_v1
c2  net-_c2-pad1_ net-_c2-pad2_ 22u
c1  net-_c1-pad1_ net-_c1-pad2_ 22u
.tran 10e-03 12e-00 0e-00

* Control Statements 
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(net-_c2-pad1_)
plot v(net-_c1-pad1_)
plot v(net-_r1-pad1_)
.endc
.end

30-04-20, 11:02 a.m. skibrar
Please place global labels for both LEDs,  and make sure that the global labels are properly connected to plot_v1
30-04-20, 11:10 a.m. Saurabhb17

Login to add comment


c:\users\skibr\documents\esim-workspace\astable_multivibrator\astable_multivibrator.cir

.include BC547B.lib
.include LED.lib
q2 net-_c2-pad1_ net-_c1-pad2_ gnd BC547B
d1 net-_d1-pad1_ net-_c1-pad1_ LED
v1 net-_r1-pad1_ gnd  dc 9
* u2  net-_c2-pad1_ plot_v1
q1 net-_c1-pad1_ net-_c2-pad2_ gnd BC547B
r1  net-_r1-pad1_ net-_d1-pad1_ 1k
r2  net-_r1-pad1_ net-_c1-pad2_ 68k
r3  net-_r1-pad1_ net-_c2-pad2_ 68k
r4  net-_r1-pad1_ net-_d2-pad1_ 1k
d2 net-_d2-pad1_ net-_c2-pad1_ LED
* u1  net-_c1-pad1_ plot_v1
* u3  net-_r1-pad1_ plot_v1
c2  net-_c2-pad1_ net-_c2-pad2_ 22u
c1  net-_c1-pad1_ net-_c1-pad2_ 22u
.tran 10e-03 12e-00 0e-00

* Control Statements 
.control
run
print allv > plot_data_v.txt
print alli > plot_data_i.txt
plot v(net-_c2-pad1_)
plot v(net-_c1-pad1_)
plot v(net-_r1-pad1_)
.endc
.end


30-04-20, 11:07 a.m. skibrar
Please place global labels for both LEDs,  and make sure that the global labels are properly connected to plot_v1
30-04-20, 11:45 a.m. Saurabhb17

Login to add comment


Log-in to answer to this question.