Installer Bibliotheques Dans PSPICE
Installer Bibliotheques Dans PSPICE
The technique for linking drawings to models is quite complex, and the PSpice tutorial must be
studied to grasp it. It would be wise to look it over before continuing! The following steps will
bring up a good example that can be adapted for tube models. From Schematics, click on File, Edit
Library to get into the Parts Library editor. Click on File, Open..., eval.slb to open a library file that
contains some parts useful as examples. (Be patient: Your screen will still be blank at this point.)
Click on Part, Get..., IRF9410 to load the drawing for a P-channel mosfet. (Choose another part if
you desire, but this MOSFET is as close as you can get to a tube in this library.) Click on Part,
Attributes... to see the statements that define this part. For the IRF9410, they are
template=M^@refdes %d %g %s %s @MODEL
refdes=M?
PART=IRF9140
MODEL=IRF9140
Template links the part to the model library: With appropriate substitutions, for example, IRF9140
for @MODEL, it appears in the netlist. A number on the schematic diagram replaces ? in refdes. To
alter an attribute, click on it in the box on the right and edit it in the boxes on the upper left. The
attributes of the 12AX7 that link it to its subcircuit in TUBE.LIB are:
template=X^@REFDES %P %G %C @MODEL
refdes=TU?
PART=12AX7
MODEL=12AX7
To create a new library file, click on File, New, then File, Save as..., tube.slb (or a full path name of
your choice). To insert a part into the new library file, draw it following instructions in the tutorial
or modify an existing part (such as the IRF9410), then save it by clicking Part, Save to Library...
Either type the library file name or use the usual Windows navigation techniques to locate it. Good
luck and please do the tutorial.
Parts are entered into PSpice Schematics drawings by clicking on the little box with the "and" gate.
You can enter "R", "L", "C", "BUBBLE", etc. for common parts, or click on Browse... to examine a
library of parts. I recommend using the rubberband option, which can be set by clicking Options,
Display Options..., Rubberband. Named nodes (1G, 1P, etc.), which are created by double-clicking
on lines and entering a name, are required for voltages to be examined in Probe. Input files to
Schematics have the three character extension .SCH. Clicking Analysis, Create Netlist creates files
with extensions .CIR (the control file), .NET (the netlist), and .ALS (an alias file which speeds up
analysis) which are used as inputs to Pspice. The .CIR and .NET files contain ASCII text in SPICE
format, as described in Paul Tuinenga's excellent text10. Clicking Analysis, Simulate creates the
netlist, runs Pspice, and loads Probe to display results. Press the Insert key to select a voltage or
current for Probe display. You can use "VDB" or "VP" to display a voltage in dB or its phase in
degrees. There are many more possibilities for controlling the display.