Download PSpice A/D Reference Guide

Transcript
PSpice Reference Guide
Before you begin
line. See Simulation command line specification format on page 23 and Specifying simulation
command line options on page 25 for details on specifying the /C or -c option for PSpice.
Note: The Search Commands feature is a Cursor option for positioning the cursor at a
particular point. You can learn more about Search Commands by consulting PSpice Help.
Log files
Instead of creating command files by hand, using a text editor, you can generate them
automatically by creating a log file while running PSpice, the Model Editor, or Stimulus Editor.
While executing the particular package, all of the commands given are saved in the log file.
The format of the log file is correct for use as a command file.
To create a file in PSpice or Stimulus Editor, from the File menu, choose Log Commands and
enter a log file name. This turns logging on. Any action taken after starting Log Commands
is logged in the named file and can be run in another session by choosing Run Commands.
You can also create a log file for PSpice, Stimulus Editor, or the Model Editor by using the /l
or -l option at the command line. For example:
PROBE /L EXAMPLE.LOG
Of course, you can use a name for the log file that is more recognizable, such as acplots.cmd
(to PSpice, the Model Editor, and Stimulus Editor, the file name is any valid file name for your
computer).
Note: You can use either (/) or (-) as separators, and file names can be in upper or lower
case.
Editing log files
After PSpice, the Model Editor, or Stimulus Editor is finished, the log file is available for editing
to customize it for use as a command file. You can edit the following items:
■
Add blank lines and comments to improve readability (perhaps a title and short
discussion of what the file does).
■
Add the Pause command for viewing waveforms before proceeding.
■
Remove the Exit command from the end of the file, so that PSpice, the Model Editor, and
Stimulus Editor do not automatically exit when the end of the command file is reached.
You can add or delete other commands from the file or even change the file name to be more
recognizable. It is possible to build onto log files, either by using your text editor to combine
June 2007
20
Product Version 16.0