The code is here,
Diode Voltage Drop
r1 1 2 10k
r2 2 3 5k
r3 3 4 4k
r4 4 0 3k
vin 1 0 dc 10
.print dc v(3,2)
.end
As you can see I am trying to get a voltage drop between node 3 aand 2. But the print function is not working properly. It is just showing the usual outputs of( the ouput is attached with documents). How am I supposed to fix this?
I dunno. LTSpice doesn't seem to support the .print v(3,2) syntax. It does (as a plotting function) if you do a .dc swept analysis, but there seems no way to do it in a .OP analysis without adding an extra node driven by a behavioral voltage source whose function definition is V=V(3,2) or V=V(3)-v(2)