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 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.
Best Answer
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 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)
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
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.