PSpice simultion

Discussion in 'Homework Help' started by thisonedude, Aug 19, 2014.

  1. thisonedude

    Thread Starter Member

    Apr 20, 2014
    52
    0
    I keep getting a job aborted when i try to compile my pSpice file. Can anyone tell me what i am doing wrong? This is my code:
    ** Part4

    Vi 1 0 AC 1
    Rl1 1 2 10k
    Rl2 2 4 10k
    Cl 2 4 0.01u
    X1 0 2 4 NOpamp

    Rh1 4 5 10k
    Ch 5 6 0.1u
    Rh2 6 7 10k
    X2 0 6 7 NOpamp


    .subckt NOpamp 1 2 3
    Ri 1 2 2MEG
    Ei 4 0 1 2 1
    R 4 5 1
    C 5 0 0.0383
    Eo 6 0 5 0 200K
    Ro 6 3 75
    .ENDS



    .AC DEC 100 10 10M
    .PRINT VDB(7), VP(7)
    .OPTIONS POST
    .END

    And what i am tryig to construct is the following circuit: (Check attachment)
    Any help would be appreciated!
     
    • cool.PNG
      cool.PNG
      File size:
      211.2 KB
      Views:
      23
    Last edited: Aug 19, 2014
  2. crutschow

    Expert

    Mar 14, 2008
    13,014
    3,234
    Does it give you an error message?
     
  3. thisonedude

    Thread Starter Member

    Apr 20, 2014
    52
    0
    The only error message I get Is "job had aborted"
    Does my spice code look correct at all? Is it maybe my parameters when I try to ask for an AC analysis?
     
  4. thisonedude

    Thread Starter Member

    Apr 20, 2014
    52
    0
    This is the error message:
     
  5. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    You have the pin order on the subcircuit screwed up...
     
  6. thisonedude

    Thread Starter Member

    Apr 20, 2014
    52
    0
    How should it go? Shouldn't it be 1 2 3 , 1 being + 2 being - and 3 being the output?
     
  7. Alec_t

    AAC Fanatic!

    Sep 17, 2013
    5,800
    1,103
    I don't use Pspice, but in LTspice ".AC DEC 100 10 10M" would be wrong. The 10M would be 10Meg (unless you really do want the analysis to start at 10milliHertz!).
    Don't the opamps need a supply voltage?
     
    Last edited: Aug 19, 2014
  8. MikeML

    AAC Fanatic!

    Oct 2, 2009
    5,450
    1,066
    Here is what works in LTSpice. I show you the netlist that LTSpice created based on the graphical schematic that I started with. You should be able to run that in PSpice.

    The important thing is that you figure out what is wrong with your netlist. (There is an error)
     
    Last edited: Aug 19, 2014
  9. thisonedude

    Thread Starter Member

    Apr 20, 2014
    52
    0
    Thank you all for all the help!!! So I figured out my mistake. Instead of having 10M I Should have had a smaller stop value. My start value was greater than my stop value. Thanks all again!
     
Loading...