0% found this document useful (0 votes)
1K views

PSpice - How to Import PSPICE Model Into Orcad Capture_ - Electrical Engineering Stack Exchange

PSpice - How to Import PSPICE Model Into Orcad Capture_ - Electrical Engineering Stack Exchange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

PSpice - How to Import PSPICE Model Into Orcad Capture_ - Electrical Engineering Stack Exchange

PSpice - How to Import PSPICE Model Into Orcad Capture_ - Electrical Engineering Stack Exchange
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

07/01/25, 20:29 spice - How to import PSPICE Model into Orcad Capture?

- Electrical Engineering Stack Exchange

How to import PSPICE Model into Orcad Capture?


Asked 11 years, 1 month ago Modified 6 years, 1 month ago Viewed 34k times

Can someone tell me how to add PSPICE Model in Orcad Capture and PSPICE simulator.

] have downloaded LM239 PSPICE model from texas instrument site, the file they are
5
providing is "LM239.5_1".

While running the simulation I had an error "ERROR(ORPSIM-15108): Subcircuit LM741/NS


used by X_U5 is undefined" and have no idea how to resolve it.

spice pspice orcad

Share Cite Edit Follow edited Aug 25, 2016 at 13:55 asked Dec 6, 2013 at 6:20
Roh Atmega32
4,660 7 46 86 135 3 3 8

1 You should try to look at the PSPICE user manual, it probably has the instructions to do that.
– clabacchio Dec 6, 2013 at 7:24

PSPICE user manual is of no use, had checked that. now by going through some tutorial provided by
Texas Instru, got to know how to create a model but now the problem is i am getting this error while
running the simulation and have no idea how to resolve "ERROR(ORPSIM-15108): Subcircuit LM741/NS
used by X_U5 is undefined" – Atmega32 Dec 6, 2013 at 8:26

1 You should update your question with the contents of your comment. – Adam Lawrence Dec 6, 2013 at
11:27

3 Answers Sorted by: Highest score (default)

The answer below is how to properly import a PSpice model (usually generated in a third-party
software) into Orcad Capture and PSpice so that both the schematic editor and the simulator
5 work without errors.

Summary
Firstly, the model must be imported into Orcad Capture (so that a new component and a
new library .olb is created. Secondly, the model must be properly "fed" to PSpice.

Step 1. Creation of Orcad's component library (.olb file)

Open Orcad Capture -> File -> Import -> PSpice -> OK

https://electronics.stackexchange.com/questions/92848/how-to-import-pspice-model-into-orcad-capture 1/5
07/01/25, 20:29 spice - How to import PSPICE Model into Orcad Capture? - Electrical Engineering Stack Exchange

Notes:
a) Field Open: path to the PSpice model
b) Field Save as: path to an Orcad library to be created with a new component. Extension must
be .opj
c) Field Schematic Configuration File: leave it as suggested

Step 2. Setting up PSpice simulator

Copy and paste your model file (e.g. Model.mod).

Rename the file from Model.mod to Model.lib. This is done, because PSpice works only
with .lib extension.

Open Orcad Capture, PSpice -> New Simulation Profile -> Enter any name for the profile
(e.g. tran1) -> In an opened window go to "Configuration files" tab -> Library category

https://electronics.stackexchange.com/questions/92848/how-to-import-pspice-model-into-orcad-capture 2/5
07/01/25, 20:29 spice - How to import PSPICE Model into Orcad Capture? - Electrical Engineering Stack Exchange

Enter the path to Model.lib in the Filename field -> Press Add to Design button

Make sure that the file {Orcad installation directory}\tools\pspice\library\nom.lib is also


added to the Configured Files as a Global

Make sure that in the Library Path there is a correct path to the PSpice main library (see
the picture above as an example of a proper path).

Final comments
a) Wrt the error you mentioned "ERROR(ORPSIM-15108): Subcircuit LM741/NS used by X_U5
is undefined", this is caused by improper setting of PSpice simulation profile (either improper
path to the Model.lib or main Library Path).
b) Overall, the trick is that import of a PSpice model is done twice: once in Orcad Capture and
once in PSpice (would have been better if done automatically by the program).
c) Of course, to add the component in Capture, one needs to add the library (Model.olb) in a
Place Part subwindow.
d) Not sure, but likely names of the files Model.lib and Model.olb must be the same, so that
PSpice knows what Spice model to use.

Share Cite Edit Follow answered Aug 25, 2016 at 13:14


Sergei Gorbikov
1,823 3 26 30

Which version of PSpice do you use ? Is it PSpice Student or the Orcad version ?

https://electronics.stackexchange.com/questions/92848/how-to-import-pspice-model-into-orcad-capture 3/5
07/01/25, 20:29 spice - How to import PSPICE Model into Orcad Capture? - Electrical Engineering Stack Exchange

1 If it's the Orcad version check the Orcad help, which is very good. If you use Pspice student,
you can't add a model, you're only allowed to use the default ones.

Usually, Spice model are in plain text so you can edit the model to adapt it in case of error.
Also you can change the file extension to have a .lib or another to fit the Spice requirements.

Your error is : "ERROR(ORPSIM-15108): Subcircuit LM741/NS used by X_U5 is undefined", but


in the LM239 spice model provided there is no reference to a LM741 model, only to
transistors and diode. So this is the LM741 model which is in fault and not the LM239.

Sometimes you need to edit the provided model to fit the spice simulation software, I
remember the LM741 when I used it on LTspice, I had to adapt it, maybe you need to.

Share Cite Edit Follow answered Dec 6, 2013 at 15:12


zeqL
1,886 10 15

i have downloaded LM741 model from TI website and created the model for it. i was following this
tutorial ti.com/lit/an/sloa070/sloa070.pdf i need to use both LM239 and LM741 but at the error which i
have mentioned in the comment of last post was for LM741. this is what i have done, downloaded
LM741 PSPice model from ti, changed the file extension to .lib, created model by importing the .lib file
using model editor, now put both the .olb and .lib file in the Pspice/library folder, am i missing
something – Atmega32 Dec 6, 2013 at 19:25

i am using OrCad version 16.6 – Atmega32 Dec 6, 2013 at 19:30

Here is the solution for OrCAD PSpice users: Whenever you download PSpice model, you get
two files (.lib and .olb). Follow the steps from following image (taking power schotkky as
0 example).

https://electronics.stackexchange.com/questions/92848/how-to-import-pspice-model-into-orcad-capture 4/5
07/01/25, 20:29 spice - How to import PSPICE Model into Orcad Capture? - Electrical Engineering Stack Exchange

If you still get error: After step 12, choose the option "add in profile" instead of "add as
Global". It will surely work as it did for me.

Share Cite Edit Follow edited Nov 29, 2018 at 13:46 answered Nov 29, 2018 at 13:04
mike65535 Tayyeb
1,505 2 16 27 1

https://electronics.stackexchange.com/questions/92848/how-to-import-pspice-model-into-orcad-capture 5/5

You might also like