1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Can't get a print of voltages between nodes from this SPICE (NGSPICE) simulator.

Discussion in 'Circuit Simulation & PCB Design' started by sr13579, Jan 25, 2018.

  1. sr13579

    sr13579 Member

    Joined:
    Sep 9, 2017
    Messages:
    40
    Likes:
    0
    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?
     

    Attached Files:

  2. Inquisitive

    Inquisitive Super Moderator

    Joined:
    Aug 31, 2011
    Messages:
    1,096
    Likes:
    100
    Location:
    Georgia, USA
    Most people on this site use LTSpice. Not sure how many use NGSpice.

    Btw, these are resistors.

    ETO1.PNG
     
  3. MikeMl

    MikeMl Well-Known Member Most Helpful Member

    Joined:
    Mar 17, 2009
    Messages:
    11,423
    Likes:
    600
    Location:
    AZ 86334
    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)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice