Home > Community > Forums > PCB Design > Problem running PSpice simulation from OrCAD Capture

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Problem running PSpice simulation from OrCAD Capture 

Last post Sun, Jan 12 2014 7:52 PM by alokt. 6 replies.
Started by RaggMopp 17 Sep 2012 03:18 PM. Topic has 6 replies and 4380 views
Page 1 of 1 (7 items)
Sort Posts:
  • Mon, Sep 17 2012 3:18 PM

    • RaggMopp
    • Not Ranked
    • Joined on Wed, Aug 15 2012
    • Posts 6
    • Points 135
    Problem running PSpice simulation from OrCAD Capture Reply

    The first simulation example in the PSpice User's Guide is made up of 2 voltage sources, 2 diodes, 4 resistors and 1 capacitor. When I  run the simulation from OrCAD Capture, it fails with: "ERROR(ORPSIM-15090): DC device Vin is undefined".

     I found that I can edit the PSpice netlist file to get the simulation to run in SPice A/D primarily by changing the second voltage source name from V_V2 to V2. 

     Anyone know why that is? And, what I can do in OrCAD to "correct" the PSpice output.

     
    **** 09/17/12 14:20:40 ****** PSpice 16.5.0 (April 2011) ****** ID# 0 ********

     ** Profile: "SCHEMATIC1-DC Sweep"  [ C:\SI\PSPICE\UserGuide\clipper-pspicefiles\schematic1\dc sweep.sim ]


     ****     CIRCUIT DESCRIPTION


    ******************************************************************************




    ** Creating circuit file "DC Sweep.cir"
    ** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

    *Libraries:
    * Profile Libraries :
    * Local Libraries :
    .LIB "C:/Cadence/SPB_16.5/tools/pspice/library/spice_elem.lib"
    * From [PSPICE NETLIST] section of C:\Cadence\SPB_16.5\tools\PSpice\PSpice.ini file:
    .lib "nom.lib"

    *Analysis directives:
    .DC LIN Vin -10 15 1
    .PROBE V(alias(*)) I(alias(*)) W(alias(*)) D(alias(*)) NOISE(alias(*))
    .INC "..\SCHEMATIC1.net"



    **** INCLUDING SCHEMATIC1.net ****
    * source CLIPPER
    V_V1         VCC 0 5V
    V_V2         VIN 0 0V
    D_D1         MID VCC D1N3940
    D_D2         0 MID D1N3940
    R_R1         VIN MID R_R1 1k TC=0,0
    .model        R_R1 RES R=1 DEV=5% TC1=0 TC2=0
    R_R2         MID VCC R_R2 3.3k TC=0,0
    .model        R_R2 RES R=1 DEV=5% TC1=0 TC2=0
    R_R3         0 MID R_R3 3.3k TC=0,0
    .model        R_R3 RES R=1 DEV=5% TC1=0 TC2=0
    R_R4         0 OUT R_R4 5.6k TC=0,0
    .model        R_R4 RES R=1 DEV=5% TC1=0 TC2=0
    C_C1         MID OUT  0.47uF  TC=0,0

    **** RESUMING "DC Sweep.cir" ****
    .END


    ERROR(ORPSIM-15090): DC device Vin is undefined

    • Post Points: 35
  • Wed, Sep 19 2012 2:58 PM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,525
    Re: Problem running PSpice simulation from OrCAD Capture Reply
    Your simulation profile is trying to run a DC Sweep of device Vin, you have no device Vin, in your netlist Vin is a net, V2 is the device to sweep the voltage at net Vin, change the Voltage Source in the Sweep to V2 and the simulation will run correctly.
    • Post Points: 20
  • Wed, Sep 19 2012 4:13 PM

    • RaggMopp
    • Not Ranked
    • Joined on Wed, Aug 15 2012
    • Posts 6
    • Points 135
    Re: Problem running PSpice simulation from OrCAD Capture Reply

    Thanks, that was helpful in that it guided me to the answer to my original question.

    So, to sum up, the information in Chapter 2 - Figure 6 - DC sweep analysis settings in the PSpice User's Guide, Second Edition 31 May 2000, is incorrect in one regard. When setting up the Simulation Profile, replace Voltage Source Name: "Vin" with the source name generated by OrCAD which, in the case of the example, becomes "V_V2". The simulation will then run correctly from OrCAD Capture.

    • Post Points: 20
  • Thu, Sep 20 2012 12:50 PM

    • oldmouldy
    • Top 10 Contributor
    • Joined on Tue, Jul 15 2008
    • Woking, Surrey
    • Posts 1,382
    • Points 23,525
    Re: Problem running PSpice simulation from OrCAD Capture Reply

    I don't have access to a version of the Users Guide that is so old BUT, I suspect that you missed the Steps to name the IN net and change the RefDes of the swept source to Vin (from the likely default of V2) along the way. Things would then work correctly.

    • Post Points: 20
  • Thu, Sep 20 2012 2:25 PM

    • RaggMopp
    • Not Ranked
    • Joined on Wed, Aug 15 2012
    • Posts 6
    • Points 135
    Re: Problem running PSpice simulation from OrCAD Capture Reply

     If "Vin" had worked, we wouldn't be having this conversation. Naming the IN net has no effect.

    So then, since I am annoyed, I will critique what appears to be an incomplete attempt to edit a correction to the problem in the PSpice User's Guide.

    In the latest online PSpice User's Guide a new figure is added: Figure 2-5. The difference being that the two sources are hardwired into the schematic diode clipper. At least, I assume that is the change, since the figure called "Diode clipper design" is still labeled 1-1 and the "Figure 2-5" links don't actually link to anything.

    • Post Points: 5
  • Sat, Jan 11 2014 10:00 PM

    • zaied
    • Not Ranked
    • Joined on Sun, Jan 12 2014
    • Posts 1
    • Points 20
    Re: Problem running PSpice simulation from OrCAD Capture Reply

    my problem is like this.....

    **** 01/12/14 11:42:05 ********* PSpice 9.2 (Mar 2000) ******** ID# 0 ********

     

     ** Profile: "SCHEMATIC1-maxipower"  [ F:\112454\maxipower-SCHEMATIC1-maxipower.sim ] 

     

     

     ****     CIRCUIT DESCRIPTION

     

     

    ******************************************************************************

     

     

     

     

    ** Creating circuit file "maxipower-SCHEMATIC1-maxipower.sim.cir" 

    ** WARNING: THIS AUTOMATICALLY GENERATED FILE MAY BE OVERWRITTEN BY SUBSEQUENT SIMULATIONS

     

    *Libraries: 

    * Local Libraries :

    * From [PSPICE NETLIST] section of C:\Program Files\Orcad\PSpice\PSpice.ini file:

    .lib "nom.lib" 

     

    *Analysis directives: 

    .DC LIN PARAM RVAL 1 10k 10 

    .PROBE V(*) I(*) W(*) D(*) NOISE(*) 

    .INC ".\maxipower-SCHEMATIC1.net" 

     

     

     

    **** INCLUDING maxipower-SCHEMATIC1.net ****

    * source MAXIPOWER

    V_V1         VIN 0 10vdc

    R_R1         VIN VOUT  1k  

    R_R2         0 VOUT  {RVAL}  

    .PARAM  {RVAL}=1k RVAL=1k

    --------$

    ERROR -- Param name

     

    **** RESUMING maxipower-SCHEMATIC1-maxipower.sim.cir ****

    .END

     

    please...give me a solution...

     

    • Post Points: 20
  • Sun, Jan 12 2014 7:52 PM

    • alokt
    • Top 25 Contributor
    • Joined on Fri, Aug 22 2008
    • Noida, Uttar Pradesh
    • Posts 241
    • Points 3,470
    Re: Problem running PSpice simulation from OrCAD Capture Reply

    You need to remove the a variable named as "{RVAR}" from PARAM component. You can do this from capture by editing properties for part "PARAM". After this change following line from your netlist

    .PARAM {RVAL}=1k RVAL=1k

    should change to

    .PARAM RVAL=1k 

    Also you should upgrade to latest 16.6 Lite (demo) installation. You can download this from http://www.cadence.com/products/orcad/pages/downloads.aspx#pspice

     

     

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by RaggMopp at 17 Sep 2012 03:18 PM. Topic has 6 replies.