I use easyeda and create a schematic,and then run. I get the netlist.
I save the netlist in local file called test.cir.Then I use ngspice to run test.cir in command line, it result error.
the ngspice result is:

Circuit: new schematic

Doing analysis at TEMP = 27.000000 and TNOM = 27.000000

Initial Transient Solution

Node Voltage


xvm1_1 0
+5v 0
vxa1#branch 9.52495e-047

No. of Data Rows : 1008

probe: no such command available in ngspice

Note: No ".plot", ".print", or ".fourier" lines; no simulations run

the netlist as following:
Untitled

XS1 XVM1_1 GND SPST_ON
VXA1 +5V GND 0v
D1 +5V GND LED
.param pi = 3.141593
.func LIMIT(x, y, z) {min(max(x, min(y, z)), max(z, y))}
.func PWR(x,a) {(MAX(ABS(x), 1e-313))*a}
.func PWRS(x,a) {sgn(x)
PWR(x,a)}
.func stp(x) {u(x)}
.func log10(x) {ln(x)/ln(10)}
.func SQRT(x) {(MAX(x, 1e-313))*0.5}
.func INT(x) {sgn(x)
floor(ABS(x))}
.func URAMP(x) {max(x,0)}
.func POW(x,a)

  • {(((a-(int(a)))==0)||(sgn(x)>=0))( max(exp(ln(uramp(x))a),0) +

  • (2(0.5-ABS((int(a))-2int(a/2))))max(exp(ln(uramp(-1x))*a),0) )}

  • a res with very small value
    .subckt SPST_ON 1 2
    r 1 2 2u
    .ENDS

.MODEL LED D

  • IS=661.43E-24
  • N=1.6455
  • RS=4.8592

.control
tran 1u 1m 0

probe V(XVM1_1)-V(+5V) I(VXA1)

quit
.endc

.END

my project address is https://easyeda.com/editor#id=Fr0YI4cWi

#General Discuss#
#id=Fr0YI4cWi#
Others

No comments yet. Be the first to comment!