You are on page 1of 8

APPENDIX A

Running PSpice on PCs


PSpice programs are available in CDs. The rst step is to have the directory listing of the les on the program CDs. The next step is to print and read the README.DOC le. It contains a brief description of the type of display and hard copy that are allowed by PSpice and Probe. It also contains the system requirements and instructions for running PSpice programs. PSpice will run on any IBM-PC, Macintosh II, or compatible computer. The student version of PSpice does not require the coprocessor for running Probe. The display could be on monochrome or color graphics monitors. There is no requirement of special features for printers. The types of printers and display can be set by editing the PROBE.DEV le or the setup menu. The simulation of a circuit requires: Installing PSpice software in PCs Creating input circuit les Run command DOS (disk operating system) commands PSpice Default Symbol Libraries

A.1 INSTALLING PSPICE SOFTWARE IN PCS


The steps to be followed to install a PSpice program in PCs with a hard drive are: 1. Place the Schematics CD ROM in the CD drive. 2. From Windows, enter the File Manager, and click with the left mouse button (CLICKL) on the CD drive. 3. CLICKL on setup.exe, File, Run, OK. 4. OK, to select Install Schematics and PSpice A/D. 5. OK, to select default C:OrCAD Dem. 6. Yes, to create Design Center icons as shown in Figure A.1. 7. Click with the left mouse button once on the Design Center icon; the window of the Design Center will open.

523

2006 by Taylor & Francis Group, LLC

524

SPICE for Power Electronics and Electric Power, Second Edition

(a)

(b)

FIGURE A.1 Icons of PSpice Schematics and PSpice A/D. (a) Schematics, (b) PSpice A/D.

A.2 CREATING INPUT CIRCUIT FILES


The PSpice program has a built-in editor with shell, as shown in Figure A.2. The net list or the input circuit le can be created by choosing Create Netlist from the Analysis menu of PSpice Schematics as shown in Figure A.3. The input le can also be created by text editors. The text editor that is always available is EDLIN. It comes with DOS and is described in the DOS users guide. Notepad or WordPad in Accessories within Programs in the Windows environment can also be used. The Accessories folder within the Programs folder on the Start menu is shown in Figure A.4. There are other editors such as Program Editor (from WordPerfect

FIGURE A.2 OrCAD PSpice A/D platform.

2006 by Taylor & Francis Group, LLC

Running PSpice on PCs

525

FIGURE A.3 Creating Netlists from PSpice Schematics.

(a)

FIGURE A.4 Selecting text editor from Window programs.

Corporation). Word processing programs such as WordStar 2000, WordPerfect, and MSWord may also be used to create the input le. The word processor normally creates a le that is not a text le. It contains embedded characters to determine margins, paragraph boundaries, pages, etc. However, most word processors have a command or mode to create a text le without those control characters. For example, WordStar 2000 creates text les with the UNIFORM format.

2006 by Taylor & Francis Group, LLC

526

SPICE for Power Electronics and Electric Power, Second Edition

(b)

(c)

FIGURE A.4 (continued).

A.3 RUNNING DOS COMMANDS


In the Windows environment, DOS commands are enabled from the Command Prompt, which is selected from the Windows Start menu, and then the Accessories submenu as shown in Figure A.5. Selecting Command Prompt opens the menu for DOS commands as shown in Figure A.6. The DOS commands that are frequently used are as follows: To format a brand new diskette on drive A:, type FORMAT A: To list the directory of a diskette on drive A:, type DIR A: To delete the le EX2-1.CIR on drive A:, type Delete A: EX2-1.CIR (or Erase A: EX2-1.CIR)

2006 by Taylor & Francis Group, LLC

Running PSpice on PCs

527

(a)

(b)

FIGURE A.5 Selecting Command Prompt in the Windows environment.

To copy the le EX2-1.CIR on drive A: to the le EX2-2.CIR on drive B:, type COPY A:EX2-1.CIRB:EX2-2.CIR To copy all the les on a diskette in drive A: to a diskette on drive B:, type COPY A: *.*B: To type the contents of the EX2-1.OUT on drive A:, TYPE A: EX2-1.OUT To print the contents of the le EX2-1.CIR on drive A:, rst activate the printer by pressing Ctrl (Control) and Prtsc (Print Screen) keys together and then type TYPE A: EX2-1.CIR The printer can be deactivated by pressing the Ctrl (control) and Prtsc (print screen) keys again.

2006 by Taylor & Francis Group, LLC

528

SPICE for Power Electronics and Electric Power, Second Edition

(c)

FIGURE A.5 (continued).

FIGURE A.6 Command Prompt menu.

A.4 PSPICE DEFAULT SYMBOL LIBRARIES


The student version of PSpice allows a maximum of ten congured (addressable) symbol libraries at a given time. It has nine default libraries (with an extension .slb) as shown in Figure A.7. Their functions are described below:

2006 by Taylor & Francis Group, LLC

Running PSpice on PCs

529

FIGURE A.7 PSpice default symbol libraries

1. abm.slb: Analog behavior models for voltage and current sources whose outputs can be controlled by mathematical expressions or tabular data and a Laplace transform block. 2. analog.slb: Analog components for passive components (R, L, C), coupled inductors, and dependent voltage and current sources. 3. analog_p.slb: Passive components (R, L, C) with parameterized values. 4. breakout.slb: Passive and active components in a simplied generic or default conguration. It is useful for circuits when detailed models, especially for active devices, are not available. 5. eval.slb: Detailed models for a few specic devices such as Q2N2222 for BJT, J2N3819 for JFET, uA741 op-amp, and IRF150 power MOSFET. 6. port.slb: Different ports and pins for specifying node connections without having to have a directly drawn wire connection. It also includes ground connection or symbol. 7. source.slb: Independent current and voltage source models. Different models of a voltage (or a current) source are used depending on the type of analysis such AC sweep, DC sweep, and transient analysis.

2006 by Taylor & Francis Group, LLC

530

SPICE for Power Electronics and Electric Power, Second Edition

8. sourcstm.slb: Specialized models of voltage and current source for use with Edit Stimulus command in Analysis menu. 9. special.slb: Specialized parts such as PARAM (short for Parameters) for creating parameterized simulations. The user can add or remove libraries as desired within the maximum limit of ten. Thus, the user can add at least one library without removing any of the PSpice default libraries. The sourcstm.slb and analog_p.slb libraries, which are not often needed, can be removed to make room for other libraries.

2006 by Taylor & Francis Group, LLC

You might also like