Product Documentation
PSpice Help
Product Version 17.4-2020, June 2020


Traces

Adding traces

You can add one or more analog or digital traces to the selected plot in the current Probe window. To view information about the trace, including which section and/or file its data came from, right-click the trace in the Probe window and choose Information.

You can add traces that use data from individual data files loaded into PSpice. Click here To use a function or arithmetic operator for more information.

To add one or more traces to a plot

  1. On the toolbar, click the Add Trace button to display the Add Traces dialog box:
  2. Select the simulation output variable that you want to display by clicking one of the variables in the list. Click here Narrowing the list of output variables for information on narrowing this list.
  3. Optional: Select operators, functions, or macros from the Functions or Macros list box to refine the data to be displayed. Depending on what you use, you may need to select more than one output variable.
  4. Click OK.

To modify a trace that is already displayed

  1. Double-click the trace name in the plot legend. In the Modify Traces dialog box, you can perform the same functions as in the Add Traces dialog box, but apply them to the selected trace.

Viewing trace information

You can view the trace name, the path for the data file from which the trace was generated (when you have more than one waveform data file loaded), information about the simulation that produced the waveform data file, and the number of data points used.

To view trace information

  1. Do one of the following:
    • Right-click a trace and choose Information.
    • Double-click the trace symbol in the plot legend.

The Section Information dialog box appears, displaying information for the trace.

Editing trace display properties

When you create a trace and it is assigned a color by your scheme setting, the color stays even if you delete a trace; the colors are not reassigned. The same is true if you change the color of an individual trace. Color schemes are specified in the Probe Settings dialog box (from the Tools menu, choose Options).

Trace colors are reassigned when you apply a new scheme.

To edit the trace properties

  1. Select and right-click a trace and choose Properties to display the Trace Properties dialog box. (You can also SHIFT+click to select multiple traces or use the Select All command from the Edit menu to select all the traces before right-clicking to change them all as a group.)
  2. Set any of the following options:
    • From the Color list, select a color to use for the trace.
    • From the Pattern list, select a pattern to use for the trace.
    • From the Width list, select a width to use for the trace.
    • From the Symbol list, select a symbol to associate with the trace in the plot legend. Select Show Symbol to display the symbol on the trace itself.
  3. Click OK to apply the new settings and close the Trace Properties dialog box.
  4. If you do not see the changes immediately, from the View menu, choose Redraw to redraw the display.

Setting grid display properties

You can change the grid properties separately for the major and minor grids on the x- and y-axes.

To edit the grid properties

  1. Right-click a gridline, then choose Properties to display a Grid Properties dialog box.
  2. Set any of the following options:
    • From the Color list, select a color to use for the grid.
    • From the Pattern list, select a pattern to use for the grid.
    • From the Width list, select a width to use for the grid.
    • Select the check box to apply these settings to the grid on the other axis.
  3. Click OK to apply the new settings and close the Grid Properties dialog box.

Setting plot edge properties

To edit the plot edge properties

  1. Right-click a plot edge, then choose Properties to display a Plot Edge Properties dialog box.
  2. Set any of the following options:
    • From the Color list, select a color to use for the grid.
    • From the Pattern list, select a pattern to use for the grid.
    • From the Width list, select a width to use for the grid.
  3. Click OK to apply the new settings and close the Plot Edge Properties dialog box.

Defining analog trace expressions

When defining analog trace expressions, you can include any combination of analog simulation output variables, arithmetic operators, functions, macros, and sweep variables.

For AC analysis, PSpice uses complex arithmetic to evaluate expressions and displays the magnitude of complex results. If the result is real (for example, IMG(V(4)+V(5))), then it can be negative. If the result is complex, (for example, V(4)+(5)), then the magnitude is displayed, which is always positive.

For procedures, see the following topics:

Click here How noise units are reported for information on how noise units are reported.

Analog Operators

Valid analog arithmetic operators:

( )

grouping

* /

multiplication/division

+ -

addition/subtraction

@

at a specific section and/or data file

#

refers to already added traces in the Probe window.

To refer to a trace use the syntax #n, where n is the number of the trace. For example, if V(in) is the first trace and V(out) is the second trace in the Probe window, V(in)/V(out) can be added just by writing #1/#2 in the Add Trace window.

Analog Functions

Valid analog arithmetic functions:

ABS(x)

|x|

ARCTAN(x)

arc tangent of x with results in radians

ATAN(x)

arc tangent of x with results in radians

AVG(x)

running average of x over the range of the X axis variable

AVGX(x,d)

running average of x from X_axis_value(x)-d to X_axis_value(x)

COS(x)

cos(x) with x in radians

D(x)

derivative of x with respect to the X axis variable

dV(node) is equivalent to d(V(node))

DB(x)

magnitude in decibels of x

ENVMAX(x,d)

envelope of x. Peaks selected have a minimum number of d consecutive datapoints.

ENVMIN(x,d)

envelope of x.Valley lows selected have a minimum number of d consecutive datapoints.

EXP(x)

the natural exponential function of x

G(x)

group delay of x with results in seconds

IMG(x)

imaginary part of x

LOG(x)

ln(x) with log base e

LOG10(x)

log(x) with log base 10

M(x)

magnitude of x

MAX(x)

maximum value of x

MIN(x)

minimum value of x

P(x)

phase of x with results in degrees

PWR(x,y)

x to the power of y

R(x)

real part of x

RMS(x)

running RMS average of x over the range of the X axis variable

s(x)

integral of x over the range of the X axis variable

sIC(node) is equivalent to s(IC(node))

SGN(x)

+1 (if x>0), 0 (if x=0), -1 (if x<0)

SIN(x)

sin(x) with x in radians

SQRT(x)

the square root of x

TAN(x)

tan(x) with x in radians

To use a function or arithmetic operator

In the Add Trace dialog box:

  1. From the Functions or Macros list, select Analog Operators and Functions.
  2. In the corresponding list, click the operator symbol or function name you want to use.
  3. If the selection is a function, fill in the arguments list by doing the following:
    1. In the Simulation Output Variables list, click the name of an output variable.
    2. Repeat for as many arguments as are needed for the function call.

Examples

Using analog output variables

To add a trace

  1. From the Trace menu, choose Add Trace to display the Add Traces dialog box.
    Enter names in the Trace Expression text box using the following notations.
    • ;<display_name>

    is the (optional) name you want to use to represent this trace expression on the plot.
    • V(<node_name>) or V(<node_name_1>, <node_name_2>)

    For example, V(3) or V(1,3).
    • Vx(<device_name>) and Ix(<device_name>), but not V(<device_name>) or Vxy(<device_name>).

    For example, VC(Q5), IB(Q2), and VG(M2) are valid, but not V(R3) or VCE(Q13).
    • I(device_name) for current value through a device.
    • VG(x) or IG(x) for group delay for voltage and current values, respectively.
    • N<noise_type>(<device_name>) for the contribution from <noise_type> of <device_name> to the total output noise.

    For example, NFID(M1) represents the flicker noise at MOSFET M1.

For noise values, use the variables as shown below:

Total Noise Variables

Use this variable…

For this noise value…

V(ONOISE)

output voltage

V(INOISE)

input voltage

I(INOISE)

input current

Device noise is available in addition to total input and output noise. These are generated only if you run a noise analysis. Click here Device noise variables to display the device noise variables. Click here How noise units are reported for information on how noise units are reported.

Device noise variables

Click here About noise units for more information on how noise units are reported.

For this device…

Use these variables…

B (GaAsFET)

NFID (Idrain flicker noise)

NRD (RD thermal noise)

NRG (RG thermal noise)

NRS (RS thermal noise)

NSID (Idrain shot noise)

NTOT (total noise)

D (Diode)

NFID (Idrain flicker noise)

NRS (RS thermal noise)

NSID (Idrain shot noise)

NTOT (total noise)

J (JFET)

NFID (Idrain flicker noise)

NRD (RD thermal noise)

NRG (RG thermal noise)

NRS (RS thermal noise)

NSID (Idrain shot noise)

NTOT (total noise)

M (MOSFET)

NFID (Idrain flicker noise)

NRB (RB thermal noise)

NRD (RD thermal noise)

NRG (RG thermal noise)

NRS (RS thermal noise)

NSID (Idrain shot noise)

NTOT (total noise)

N (Digital Input)

NRHI (resistance noise between the digital device output and its PWR pin)

NRLO (resistance noise between the digital device output and its GND pin)

NTOT (total noise)

O (Digital Output)

NTOT (total noise)

Q (BJT)

NFIB (base current flicker noise)

NRB (RB thermal noise)

NRC (RC thermal noise)

NRE (RE thermal noise)

NSIB (base current shot noise)

NSIC (collector current shot noise)

NTOT (total noise)

R (Resistor)

NTOT (total noise)

S (Vswitch)

NTOT (total noise)

W (Iswitch)

NTOT (total noise)

How noise units are reported

This type of noise output variable...

Is reported in these units…

device contribution of the form Nxxx

total input or output noise of the forms V(ONOISE) or V(INOISE)

Defining digital trace expressions

When defining digital trace expressions, you can include any combination of digital signals, buses, signal constants, bus constants, digital operators, and macros.

The following rules apply:

For procedures, see the following topics:

To add a digital signal

In the Add Trace dialog box:

  1. Do one of the following:
    • In the Simulation Output Variables list, click the signal you want to display.

    or
    • In the Trace text box, create a digital expression by either typing the expression, or by selecting digital signals from the Simulation Output Variables list and digital operators from the Digital Operators and Functions list.
  2. If you want to name the signal with a name that is different from the node name:
    • Click in the Trace text box after the last character in the signal name
    • Type ;
    • Type the name

Syntax

To specify the digital node name or expression to use in adding a digital signal, use the syntax:

<digital_node_name>;<display_name>

or:

<digital_expression>;<display_name>

where:

<digital_node_name>

is the digital signal from the Simulation Output Variables list.

<digital_expression>

is the expression using digital signals and operators understood by PSpice.

<display_name>

is the (optional) name you want to use to represent this signal on the plot.

Example

U2:Y;OUT1

specifies a digital trace using the node U2:Y, named OUT1 on the plot.

To add a bus

In the Add Trace dialog box:

  1. From the Functions and Macros list, select Digital Operators and Functions.
  2. Click the { } entry.
  3. In the Simulation Output Variables list, click the digital signals in high order to low order sequence.
  4. If you want to name the bus with a name that is different from the default:
    1. Click in the Trace text box after the last character in the signal name.
    2. Type ; .
    3. Type the name.
  5. If you want to set the radix to something other than the default:
    1. Click in the Trace text box after the last character in the bus definition.
    2. Type ; .
    3. Type the radix value.

Syntax

Specify the contained signals and name of the bus using the syntax:

{digital signals list};display name;radix

or:

{bus_prefix[msb:lsb]};display name;radix

where:

{digital signals list}

is a comma- or space-separated list of up to 32 digital simulation output variables sequenced from high order to low order.

{bus_prefix[msb:lsb]}

is an alternate way to specify up to 32 signals in the bus.

Display name

(optional) is the name you want to use to represent this bus on the plot.

radix

(optional) is the numbering system in which you want to display the bus values.

Examples

{Q2 Q1 Q0};A;O

specifies a 3 bit bus whose high order bit is the digital value at node Q2. On a plot, PSpice names the bus signal A, and values appear in octal notation.

{a3 a2 a1 a0};;d

specifies a 4 bit bus. On a plot, values appear in decimal notation. Since no display name is specified, PSpice names the bus signal with the signal list.

{a[3:0]} is equivalent to {a3 a2 a1 a0}.

radix

Valid radix values:

H or X

hexadecimal (default)

D

decimal

O

octal

B

binary

To add a digital signal or bus constant

For a signal constant

  1. If needed, click in the Trace text box at the location where you want the constant.
  2. In the Digital Operators and Functions list box, click the signal constant value.

For a bus constant

  1. Click in the Trace text box at the location where you want the constant.
  2. Type the bus expression using the syntax:

r’ddd

where

r

is the lower-case bus constant radix

ddd

is the string of digits reflecting the constant value in the specified radix

Examples

x’3FFFF

hexadecimal

h’5a

hexidecimal

d’79

decimal

o’177400

octal

b’100110

binary

signal constants

‘0

low

‘1

high

‘F

falling

‘R

rising

‘X

unknown

‘Z

high impedance

bus constant radix

Valid bus constant radix values are all lower case as follows:

h or x

hexadecimal

d

decimal

o

octal

b

binary

To use a digital operator

In the Add Trace dialog box:

  1. From the Functions and Macros list, select Digital Operators and Functions.
  2. Click one of the digital operators in the corresponding list.
  3. If the operator is the grouping operator:
    1. Click the name of a node in the Simulation Output Variables list.
    2. Repeat step a for each node in the group.

Digital operators

Valid digital arithmetic and boolean operators, listed in order of precedence:

( )

grouping

~

logical complement

* /

multiplication/division (bus values only)

+ -

addition/subtraction (bus values only)

&

and

^

exclusive or

|

or

To use a sweep variable

In the Add Trace dialog box, either select the sweep variable from the Simulation Output Variables list or type in the name as follows:

Narrowing the list of output variables

To restrict the simulation output variables

  1. In the Simulation Output Variables text box, type a wildcard string that approximates the output variables you want to see, then press Enter.

Valid wildcards:

*

matches zero or more characters

?

matches exactly one character

You can also restrict the list to include only the variable types of interest by selecting the check boxes to the right of the Simulation Output Variables list.

Examples

C*

matches any output variable starting with C.

C?

matches any two-character output variable starting with C.

Deleting traces

You can remove one or more analog or digital traces from a given plot in a Probe window.

To delete one or more traces from a plot

  1. Do one of the following to select the first trace that you want to delete:
    • For an analog trace, select the trace name in the legend below the X axis.
    • For a digital signal, select the trace name to the left of the Y axis.
  2. Shift-click other trace names to select more traces for removal.
  3. On the toolbar, click the Cut button to remove the trace or traces.

To delete all traces in the current plot

  1. From the Trace menu, choose Delete All Traces.

Setting the digital plot size

You can set the size of the digital plot to display on the screen to make more (or less) room for traces or trace names.

To set the digital plot size using the mouse

  1. Display at least one digital trace and one analog trace in the Probe window for which you want to set the digital size.
  2. To change the bottom position of the digital Probe window, do the following:
    1. Place the cursor between the analog and digital parts of the plot.
    2. Click the plot separator that you want to change.
    3. Drag the plot separator until you have the digital size you want.
  3. To change the left side of the digital Probe window, do the following;
    1. Place the cursor at the left edge of the digital Probe window you want to resize.
    2. Click the left edge that you want to move.
    3. Drag the left edge of the digital Probe window to adjust the space available for displaying digital trace names.

To set the digital plot size using menu options

  1. Display at least one digital trace in the plot for which you want to set the digital size.
  2. From the Plot menu, choose Digital Size.
  3. In the Digital Size dialog box, select the following:
    1. Percentage of Plot to be Digital
    2. Length of Digital Trace Name
  4. Click OK.

Using cursors

You can display the cursors on the plot, using two cursors per Probe window at a time. Each cursor displays the exact value of a single point on a curve. You can also change the number of digits displayed in the cursor box.

If all the selected sections have one data point at the same X value, then the x-axis has only one tick mark and one value.

For more information, see the following topics:

To display both cursors

Do one of the following:

The dockable cursor window appears on the screen, showing the current position of the cursor on the x- and y-axes. Press and hold either the left or right mouse buttons to alternate moving one or the other cursor. As you move the cursors, the values in this cursor window change. Move the cursor box by dragging the box to another location.

To move the cursors using the mouse

Do one of the following:

To apply the cursors to a different trace

If you want to apply the cursors to a different trace, click the trace symbol in the plot legend for the trace you want to change to.

To freeze the cursor, do one of the following:

OR

  1. Choose Tools – Options.
    The Probe Settings dialog box opens.
  2. Select the Cursor Settings tab.
  3. Select Show non-dockable(old) cursor window.
    The Probe Cursor window appears.
  4. Click the Probe Cursor window (below the title bar) to freeze the cursor locations on the current trace.

To change the number of digits displayed

  1. Choose Tools – Options.
  2. Select the Cursor Settings tab.
  3. In the Number of cursor digits text box, type a number between 2 and 18.
  4. Click OK.

To move the cursors using the keyboard

Use the following key combinations (directional keys on the keyboard) to move the cursors.

To move this…

Press this…

Cursor 1 to the right or left

Right or left arrow

Cursor 2 to the right or left

Shift + right arrow or

Shift + left arrow

Cursor 1 to the previous or the next trace

Ctrl + right arrow or

Ctrl + left arrow

Cursor 2 to the previous or next trace

Shift + Ctrl + right arrow or

Shift + Ctrl + left arrow

Cursor 1 to the beginning or the end of the trace

Home or End

Cursor 2 to the beginning or the end of the trace

Shift + Home or

Shift + End

Moving cursors along a trace

You can move cursors to view the coordinates of any point on a trace.

Move a cursor by moving the mouse to the desired location and clicking the appropriate mouse button. The left mouse button controls the first cursor, and the right mouse button controls the second cursor. The move is made by the last cursor that was moved. For example, if you right-click the plot to move cursor 2 and then click the max button on the toolbar, cursor 2 will move to the maximum point on the trace it is positioned on.

There are also default keyboard shortcuts for moving cursors.

The trace each cursor follows is determined by the selected trace symbol. To change the trace on which the cursor is on, click a different trace symbol in the legend.

Cursor movements are not recorded during command logging.

For more information, see the following topics:

To turn cursors on or off

To move the cursor to the next peak

To move the cursor to the next trough

To move the cursor to the next slope

To move the cursor to a minimum or maximum point

To move the cursor to the next data point generated by the simulator

To move the cursor to the next transition

To move the cursor to the previous transition

To mark every data point with a symbol

To search for a specific cursor location

Do the following:

  1. Choose Trace – Cursor – Display or click the Toggle Cursor button.
  2. Choose Trace – Cursor – Search Commands or click the Cursor Search button.
    The Search Command window opens.
  3. Specify the command sfxv() or sfle() to move the cursor to specific X and Y locations respectively.
    For example:
    • To move the cursor to X = 10ns, specify sfxv(10ns).
    • To move the cursor to Y = 10V, specify sfle(10v).
  4. Click OK.
    By default, the sfxv() and sfle() commands search in the forward direction from current cursor location.

    To move the cursor at a specific location in the reverse direction, use the following commands:
    • sbxv()
    • sble()

Changing views

You can change the way PSpice displays the traces on a plot. You can zoom in or out, change the center point, display only a selected area, see the previous view, and fit the display to the plot. You can also turn the display of the Toolbar and Status Bar on or off.

The new items were formerly part of the Probe Settings dialog box.

To zoom in or out

  1. On the toolbar, click View In or View Out.
    • View In zooms in by a factor of 2 around the point you specify.
    • View Out zooms out by a factor of 2 around the point you specify.

To change the center point

  1. From the View menu, choose Pan New Center.
  2. Click the new center.
    The screen redraws with the new center, maintaining the previous scale.

To display the selected area

  1. On the toolbar, click the Area button.
  2. Click the mouse in the display.
  3. Drag a box around the area you want to view.
    The area is displayed.

To redraw the screen

The screen is immediately redrawn.

To see the previous view

To fit the view

  1. On the toolbar, click the Fit button.
    The selected plot changes scale so that all data fits in the plot view on the screen.

To display the Toolbar

To display the status bar

To save or load a display

  1. From the Window menu, choose Display Control.
  2. Do one of the following:
    • To save the current display, type a name in the New Name box. Click Save.
    • To save to a different location, click the Save To button. Type a new name. Click OK.
    • To load a listed display, click the name and click the Restore button.
    • To load a display not listed, click the Load button, then select the name of the .PRB file to load. Click OK. Click the name of the display to load, then click the Restore button.
  3. Click Close.

To use a saved display

  1. From the Window menu, choose Display Control.
    The Display Control dialog box appears.

  2. Click the Displays tab.
  3. Do one of the following:
    • To use a display listed here, click the name.
    • To use a display from another .PRB, click Load. Select the file. Click OK. Click the name of the display.
  4. Click Restore.
You can use a saved display to display traces as long as the current data file has variables with the same names as the variables in the display file.

To load displays from another .PRB file

  1. From the Window menu, choose Display Control.
    The Display Control dialog box appears.
  2. Click the Displays tab.
  3. Click Load.
  4. Select the file.
  5. Click OK.
You can use displays saved in another .PRB file.

Creating a Fourier Transform

Fourier Transforms (FFT) can be applied to all the analog traces in a Probe window.

You can use Fourier Transforms to examine the spectrum of the output of non-linear circuits. The resolution of the transformed display is determined by the extent of the original x-axis. The extent of the transformed x-axis is determined by the number of original data points.

If you want the Fourier transform display in PSpice to show more resolution, run the transient analysis for a longer time interval. Run the circuit for many cycles if necessary.

When Fourier is used to end the Fourier transform mode, all traces are drawn normally and the x-axis variable goes back to its original domain.

You can take the Fourier transform of an expression of nodes (e.g., V(4) ? V(5)), but you cannot display an expression of Fourier transforms (e.g., FFT(V(4)) ? FFT(V(5))).

To view a Fourier Transform

  1. Select a plot to view.
  2. On the toolbar, click the Fourier Transform button.
    Fourier transforms of all traces are displayed.

To end the Fourier Transform

  1. On the toolbar, click the Fourier Transform button.
    Measurement definitions are not supported in Fourier transform mode.

Cautions when using FFTs

To correctly evaluate the harmonic components of a waveform, you must apply the Fourier Transform to a waveform with an integral number of periods. The FFT of a waveform with a partial period (e.g., 2.9 periods instead of 3) will generate false harmonic information.

To get an exact number of periods

  1. Restrict the data as necessary.

In general, using several periods will give better results.

Changing axis settings

You can specify the way PSpice displays the x-axis or y-axis, or the x or y grids. The Axis Settings dialog box provides tabbed dialog boxes for defining the display characteristics for each of these options:

To set the x-axis

  1. Do one of the following to display the Axis Settings dialog box:
    • From the Plot menu, choose Axis Settings.
    • Double-click in the area below the plot where the x-axis values are listed.
  2. Click the X Axis tab, and type or select the following:
    • Data Range
    • Scale
    • Use Data
    • Processing Options
    • Axis Title
    • Axis Variable
  3. Click OK to apply the changes.

To set the y-axis

  1. Do one of the following to display the Axis Settings dialog box:
    • From the Plot menu, choose Axis Settings.
    • Double-click in the area below the plot where the x-axis values are listed.
  2. Click the Y Axis tab, and type or select the following:
    • Data Range
    • Scale
    • Y Axis Number: select an identification number from the list.
    • Axis Position
    • Axis Title: enter a title for the y-axis.
  3. Click OK to apply the changes.

To set the x-grid

  1. Do one of the following to display the Axis Settings dialog box:
    • From the Plot menu, choose Axis Settings.
    • Double-click in the area below the plot where the x-axis values are listed.
  2. Click the X Grid tab, and type or select the following:
    • Automatic: select this to calculate the grid spacing automatically.
    • Major
    • Minor
  3. Click OK to apply the changes.

To set the y-grid

  1. Do one of the following to display the Axis Settings dialog box:
    • From the Plot menu, choose Axis Settings.
    • Double-click in the area below the plot where the x-axis values are listed.
  2. Click the Y Grid tab, and type or select the following:
    • Automatic: select this to calculate the grid spacing automatically.
    • Y Axis Number: select this to identify which y-axis the settings should be applied to.
    • Major
    • Minor
  3. Click OK to apply the changes.

Using the ‘Save as Default’ and ‘Reset Defaults’ buttons

The Save as Default button provides a means of setting the default preferences that are used when traces are added or when new axes are created. This will not affect the settings of previously existing axes or traces.

The Reset Defaults button will restore the default settings to the original settings that are used when the program is first run.

To set the x-axis data range

  1. Double-click the x-axis to display the Axis Settings dialog box.
  2. Click the X Axis tab.
  3. In the Data Range frame, choose either Auto Range or User Defined.
    If you choose User Defined, specify the range in the text boxes.
  4. In the Scale frame, do the following:
    1. Type a beginning value and end value for the range.
    2. Choose Linear or Log scaling.
  5. In the Use Data frame, choose either Full or Restricted.
    If you choose Restricted, specify the range in the text boxes.
  6. In the Processing Options frame, choose Fourier, Performance Analysis., or neither.
  7. Click Axis Variable to select the variable for the x-axis.
  8. Click the variable or trace you want as the variable for the x-axis. To see other available variables or traces, click the choices. Click here Defining analog trace expressions for more information on defining traces.
    1. Click OK to close this dialog box.
  9. Click OK.

To set the y-axis data range

  1. Do one of the following:
    • From the Plot menu, choose Y Axis Settings.
    • Double-click the y-axis to display the Axis Settings dialog box.
  2. Click Y Axis tab.
  3. In the Data Range frame, choose either Auto Range or User Defined.
    If you choose User Defined, specify the range in the text boxes.
  4. In the Scale frame, do the following:
    1. Type a beginning value and end value for the range.
    2. Choose Linear or logarithmic scaling.
  5. In the Y Axis Number box, select an identification number for the y-axis.
  6. In the Axis Title box, type a title for the y-axis.
  7. Click OK.

Adding a new Y axis

You can add a new y-axis to the active Probe window. You can add up to 3 y-axes. The added y-axis becomes the selected y-axis. All subsequent traces added are added to the selected y-axis.

To add a Y axis:

  1. Click the plot that you want to add a new y-axis to.
  2. From the Plot menu, choose Add Y Axis.

Deleting a Y axis

You can delete a y-axis you no longer want.

Any traces on the axis are deleted when the axis is deleted.

To delete a y-axis:

  1. Click the y-axis that you want to delete.
  2. From the Plot menu, choose Delete Y Axis.

Using multiple plots

You can display multiple plots at the same time in one Probe window. When several plots are in the same Probe window, you can select one, delete one, or work with them as synchronized or unsynchronized. You can also copy and paste traces among plots.

Plots from the same set of waveform data are automatically synchronized. You can use unsynchronized plots to independently apply different scales, Fourier or Performance Analysis, or evaluate measurement expressions.

Unsynchronizing plots releases the selected plot to have its own x-axis. Plots that share x-axes are always displayed together, one above the other.

For more information, see the following topics:

To add a new plot

  1. Click in the Probe window to which you want to add the plot.
  2. From the Plot menu, choose Add Plot to Window.
    The new plot appears above the selected plot in the Probe window.
    Now you can add traces.

To select the current plot

Click the plot you want.

To delete a plot

  1. Click the Plot you want to delete.
  2. From the Plot menu, choose Delete Plot.

To unsynchronize plots

If the selected plot is the middle plot of three plots sharing an X axis, then the middle plot is moved to the top position.

After you have unsynchronized a plot, you cannot resynchronize it. You must delete the plot and add a new plot.

To unsynchronize a plot

  1. Click the plot you want to become unsynchronized.
  2. From the Plot menu, choose Unsynchronize X Axis.

Using Probe windows

When you open a waveform data file, a new Probe window appears.

You can have more than one Probe window at a time. Each Probe window can contain one or more plots. Each plot can contain both analog and digital traces. You can copy and paste traces among plots.

You can create, select, arrange, and delete Probe windows by using the Plot and Windows menus. The title for the Probe window is a list of the waveform data files open for that window.

Probe windows feature automatic grid spacing. As you resize a Probe window, the major grid spacing changes, and the grid numbering appears as the numerals fit on the screen.

You can save the contents of a Probe window by using Display Control. Display control saves the plot configuration, including number of plots, traces and labels in each plot, x- and y-axis settings, and x-axis variable.

You can print any or all of the plots in a Probe window.

Toggling between display modes

You have the choice of using two different display modes.

The standard (default) display mode in PSpice includes the main Probe window, plus the output window and the simulation status window. This provides all possible information about the simulation run and contains all of the toolbars and settings.

The alternate display mode shows only the Probe window with any waveforms that have been plotted. This mode gives you just the plots you are interested in seeing without the additional simulation data normally provided by PSpice.

The toolbar and window settings are saved for each mode. Any changes you make in the settings will become the new default the next time you choose that display mode.

The alternate display mode can be very handy when you want to see the waveforms superimposed on the schematic diagram for easy debugging and testing of the circuit. You can customize the alternate display mode to view various toolbars or other PSpice windows, according to your own preferences.

By default, the alternate display mode is set to be visible at all times (see Keeping the Probe window visible at all times).

To toggle between the standard and the alternate display modes:

  1. From the View menu, choose Alternate Display or click the Alternate Display toolbar button.

Keeping the Probe window visible at all times

Like any other application running under Windows, the PSpice window will remain in the forefront of the desktop only as long as it is the active window. In order to keep the PSpice window visible at all times, you can use the push pin feature.

By keeping the Probe window on top of other active windows, you can easily view the schematic page at the same time you see the corresponding waveform for that circuit. This allows you to cross-probe quickly and easily without having to activate the Probe window each time.

The push pin button is a toggle; clicking on it when it is enabled will disable the “on top” function.

To make the Probe window visible at all times:

  1. Click the push pin button in the toolbar or, from the View menu, choose Always on Top.

To print plots

Do one of the following:

  1. To print one copy of the current Probe window using the default print settings, click the Printer button on the toolbar.
  2. Select the plots you want to print.
  3. If needed, select a printer and printer information.
  4. Click OK.

Using Display Control

You can create displays to save the contents of a Probe window. You can view a display again at a later time with a different simulation so long as the new simulation has identically named variables.

Once the display is saved, you can copy it, edit it, and delete it.

For more information, see the following topics:

To save a display

  1. Set up the plots, traces, labels, and axes in the Probe window you want to save.
  2. From the Window menu, choose Display Control.
    The Display Control dialog box appears.
  3. Click the Displays tab.
  4. In the New Name text box, type a name for the display.
  5. Do one of the following:
    • To save the display in the current .PRB file, click Save.
    • To save the display in another .PRB file, click Save To. Specify the name and location of the file. Click OK.
  6. Click Close.

To copy a display

  1. From the Window menu, choose Display Control.
    The Display Control dialog box appears.
  2. Click the Displays tab.
  3. Click the name of the display to copy.
  4. Click Copy To.
  5. Specify the name and location of the copied display.
  6. Click OK.
  7. Click Close.

To delete a display

  1. From the Window menu, choose Display Control.
    The Display Control dialog box appears.
  2. Click the Displays tab.
  3. Do one of the following:
    • To delete a display from the current .PRB file, click the name, then click Delete.
    • To delete a display from a global or remote .PRB file, click Delete From, then select the .PRB file.
  4. Click Close.

Using plot window templates

PSpice provides plot window templates that allow you to create and reuse custom displays in Probe using defined arguments. A plot window template is a plot window consisting of one or more arguments used to represent node voltage, pin current, power or digital names within a display. An argument provides the means to replace a fixed node voltage or pin current name with a node voltage or pin current name you choose.

You can create unique plot window templates for a particular design or general templates that can be applied to various designs. A set of some of the more commonly used templates are predefined and included with PSpice.

To work with plot window templates, from the Window menu, choose Display Control, and click the Templates tab. Here you can customize plot window templates in various ways. See the Related Topics below for more detailed information.

Related Topics

For information about…

Click this topic…

Creating a new template…

Creating a plot window template

Modifying an existing template…

Modifying a plot window template

Deleting a template…

Deleting a plot window template

Copying a template…

Copying a plot window template

Restoring a template…

Restoring a plot window template

Viewing the properties of a template…

Viewing the properties of a plot window template

Loading a template…

Loading a plot window template

Placing plot window template markers…

Placing plot window template markers

Creating a plot window template

In order to create and save a new plot window template, you must first set up the active plot window in Probe with the configuration you want. The active plot window will be the basis for the template properties you save.

Only those templates which apply to the active simulation are listed in the Template dialog box. For example, an AC simulation will show frequency domain templates such as Bode plot, while a transient analysis will show time domain templates such as risetime or pulsewidth. In addition, some predefined templates require multirun analyses (Monte Carlo analysis, time sweep, or parametric sweep).

To create a new plot window template

  1. In PSpice, from the Window menu, choose Display Control.
  2. Click the Templates tab.

  3. In the New Name text box, enter the name for the new template you want to create.
  4. Click Save or Save To.
    The Save Plot Window Template – Step 1 of 2 dialog box appears.

  5. In the Description text box, type in a description for the template, if you would like one. (This is optional.)
  6. If you clicked Save To instead of Save, choose the .PRB file you wish to save the template to by selecting the appropriate radio button under the Store Template In frame. (The default is the local .PRB file. For the Save function, the Local File is the only option.)
    • Local File – the .PRB file for the current simulation in PSpice.
    • Global File – the .PRB file to be used globally for all Probe displays.
    • Other File – another .PRB file stored elsewhere on your hard disk or network drive. Use the Browse button to locate the file on a particular drive.
  7. Click Next.
    The Save Plot Window Template – Step 2 of 2 dialog box appears. The number of Node/Pin Name arguments that are listed here is determined by the current display.

  8. Define the association of each argument by selecting the node or pin name from the drop-down list under the column Node/Pin Name.
    This drop-down list shows all of the available node voltage, pin current, power or digital names. If the drop-down list does not appear, click in the text box to activate the drop-down button.
  9. For each argument, set the Type of argument to be used by selecting the argument name from the drop-down list under the column Type.
    This drop-down list shows all of the available argument types (any, current, power, voltage). If the drop-down list does not appear, click in the text box to activate the drop-down button.
  10. For each argument, under the Description column, type in a description, if you would like one. (This is optional.)
    The description you enter here will be displayed in the status line of Capture when placing a marker associated with the argument.
  11. If desired, change the order of the arguments by using the Arrow buttons to move an argument up or down in the listing. Or, you can delete an argument by selecting it and clicking the Delete button.
  12. Click Finish.
At least one argument is required to create a plot window template. The maximum number of arguments allowed is the number of unique node voltage, pin current, power or digital names in the active display.

Modifying a plot window template

Modifying a plot window template is essentially the same as creating a new template. In order to modify a plot window template, that particular template must be the active plot window in Probe. If the active display is not the template you want to modify, use the Restore button to make a different template the active display in Probe (see Restoring a plot window template).

To modify a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Select the template you want to modify by clicking on its name in the list of loaded templates. If the template you are looking for is not in the list, use the Restore button to make it the active display.
  4. Click Save to display the Save Plot Window Template – Step 1 of 2 dialog box.
  5. Make the desired changes, then click Next to display the Save Plot Window Template – Step 2 of 2 dialog box.
  6. Make the desired changes, then click Finish.
    The modifications will be saved and the display will be updated automatically.
If an argument assignment no longer applies because the node voltage, pin current, power or digital names are mapped to an argument that has changed, then information regarding that argument will not be available in the Step 2 of 2 dialog box.

Deleting a plot window template

You can remove a plot window template from the list of loaded templates. By deleting a plot window template, you remove it from the list of templates you can access and erase it from the .PRB file.

To delete a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Click the name of the plot window template you want to delete.
  4. Click Delete.

Copying a plot window template

You can copy a plot window template into another .PRB file to make it available for use later with that file.

To copy a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Click the name of the plot window template you want to copy.
  4. Click Copy To.
    The Probe File for Save Template dialog box appears.
  5. Choose the .PRB file you wish to save the template to by selecting the appropriate radio button under the Store Template In frame. (The default is the local .PRB file.)
    • Local File – the .PRB file for the current simulation in PSpice.
    • Global File – the .PRB file to be used globally for all Probe displays.
    • Other File – another .PRB file stored elsewhere on your hard disk or network drive. Use the Browse button to locate the file on a particular drive.
  6. Click OK.

Restoring a plot window template

In order to make a plot window template the active display in Probe, you must restore it. This process recalls a previously defined plot window template and sets up a new plot window in Probe using the arguments associated with that template. In order for the arguments in the template to apply, you must replace the node voltage names or pin current names for each argument contained in the restored template.

You can only restore plot window templates that are already loaded. If you want to restore a plot window template that does not appear in the list, you must first load it. To load a template, see Loading a plot window template.

To restore a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Choose the plot window template you want to restore by clicking on its name in the list of loaded templates.
  4. Click Restore.
    The Restore Plot Window Template dialog box appears.

  5. Reassign the node voltage names or pin current names for each argument in the list.
  6. Click OK.
    A new Probe window will be created and the restored plot window template will be displayed.
You may also restore a plot window template by choosing the Add Trace command from the Trace menu, and then selecting Plot Window Templates from the drop-down list in the Functions or Macros frame.

Viewing the properties of a plot window template

You can view the properties of a plot window template and change the description fields for the template or arguments it contains.

Only those templates which apply to the active simulation are listed in the Template dialog box. For example, an AC simulation will show frequency domain templates such as Bode plot, while a transient analysis will show time domain templates such as risetime or pulsewidth. In addition, some predefined templates require multirun analyses (Monte Carlo analysis, time sweep, or parametric sweep).

To view the properties of a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Click the name of the plot window template you want to view.
  4. Click Properties.
    The Plot Window Template Properties dialog box appears.

  5. Change the Description field for the template, or change the description for any of the Arguments, as desired.
  6. Click Finish to exit and save any changes.
When viewing the properties of a template, you can only edit the description fields. No other changes are allowed. If you want to modify the arguments or assignments, see Modifying a plot window template.

Loading a plot window template

You can load a plot window template from another .PRB file, and add it to the list of available templates. When you load a template, you do not make it the active display in Probe. You are only adding it to the list of available templates. (To restore the display of a newly loaded template, see Restoring a plot window template.)

If a duplicate template is loaded, then the one you are loading will replace the current one in the list. If you close the data file and reopen it, any plot window templates that you loaded earlier will have to be loaded again to make them available. (Loaded templates are not saved with the data file.)

To load a plot window template

  1. From the Window menu, choose Display Control.
  2. Click the Templates tab.
  3. Click Load.
    The Load Displays dialog box appears.
  4. Locate the .PRB file that contains the plot window template you want to load.
  5. Select the file and then choose Open.
    The loaded templates will be listed in the Display Control dialog box.

Placing plot window template markers

You can place a marker in Capture that represents a plot window template. The marker will restore the associated template when you run the simulation in PSpice. Markers for plot window templates are distinguished from other markers (for voltage, current, or power) by being square rather than round in shape.

A simulation profile must be active in order to place a marker for a plot window template. The analysis type defined in the profile will determine what type of template will be loaded (either for AC, DC or transient analysis). Plot window templates are defined for one analysis type only. For example, an AC simulation will show frequency domain templates such as Bode plot, while a transient analysis will show time domain templates such as risetime or pulsewidth. In addition, some predefined templates require multirun analyses (Monte Carlo analysis, time sweep, or parametric sweep).

When placing a plot window template marker, the argument description for the template being placed will appear in the status bar of Capture. Markers will continue to be placed until all arguments for the template have been satisfied. If an active simulation exists, then the template markers will turn black; otherwise, they will remain gray.

If an argument type is set to "Any" rather than a specific type, the marker type will depend on the marker placement location. If a marker is placed on a pin, then it will be assumed to be a current marker. If a marker is placed on a node, it will be assumed to be a voltage marker. If a marker is placed on a device, it will be assumed to be a power marker.

To place a plot window template marker

  1. In Capture, from the PSpice menu, choose Markers, then select Plot Window Templates.
    The Plot Window Templates dialog box appears.

  2. Click the template you want to associate with the marker you will place.
  3. Click Place.
    A plot window template marker will appear and be attached to the cursor.
  4. Place the marker at a particular location on the schematic page.
  5. Continue to place markers at the appropriate locations until all the arguments for the template have been satisfied.
PSpice does not have to be running in order for you to place a marker for a plot window template. The list of loaded templates comes from either the default PSpice.PRB file or from the .PRB file for the active profile, if that exists.

Related Topics

For information about…

Click this topic…

Plot window templates in PSpice …

Using plot window templates

Working with current, voltage or power markers…

Using markers

Defining simulation profiles…

Creating a new simulation profile

Labeling plots

You can place labels to annotate an analog plot. Labels can be placed anywhere on the trace window, including outside the current Probe window where they are not visible. Unless you specifically set the plot region, PSpice rescales the plot so that all labels are visible.

You can place the following labels. Click one to display a procedure of how to use it.

text

To place text

Line

To draw a line

Box

To draw a box

circle

To draw a circle

poly-line

To draw a poly-line

Arrow

To draw an arrow

Ellipse

To draw an ellipse

mark

To mark the cursor location

To move a label

  1. Click to select a label. Shift+click to select several labels.
  2. Drag the labels to a new location, holding the mouse button down on the edge of one of the labels.
  3. Release the mouse button to place the labels.

To delete a label

  1. Click to select a label. Shift+click to select several labels.
  2. From the Edit menu, choose Delete.

To place text

  1. On the toolbar, click the Text button.
  2. In the Text Label dialog box, type a label in the text box. You can use up to 124 characters, including spaces.
  3. Click OK.
  4. Move the cursor to where you want to place the text.
  5. Click to place the text.

To draw a line

  1. From the Plot menu, point to Label, then choose Line.
  2. Click the start point for the line.
  3. Move the pointer to the end point for the line.
  4. Click to set the end point and draw the line.

To draw a poly-line

  1. From the Plot menu, point to Label, then choose Poly-line.
  2. Click the start point for the line.
  3. Move the pointer to the end point for the first segment.
  4. Click to set the end point and draw the first segment.
  5. Repeat steps 3 and 4 for the other segments.
  6. Right-click to complete the poly-line label.
When you create single poly-lines, PSpice changes all the line segments to single poly-line labels.

To draw an arrow

  1. From the Plot menu, point to Label, then choose Arrow.
  2. Click the start point for the arrow. The arrowhead appears on the other end.
  3. Move the pointer to the end point for the line.
  4. Click to set the end point and draw the arrow.

To draw a box

  1. From the Plot menu, point to Label, then choose Box.
  2. Click to set the first corner of the box.
  3. Move the pointer to the other corner of the box.
  4. Click to set the corner and draw the box.

To draw a circle

  1. From the Plot menu, point to Label, then choose Circle.
  2. Click to set the center of the circle.
  3. Move the pointer to the outside point of the circle.
  4. Click to set the radius and draw the circle.

To draw an ellipse

  1. From the Plot menu, point to Label, then choose Ellipse.
  2. Type the inclination angle and click OK.
  3. Click to place the center of the ellipse.
  4. Move the pointer to size and shape the ellipse.
  5. Click to draw the ellipse.

To mark the cursor location

The Mark command places a cursor mark at the position of the most recently moved cursor.

A cursor mark consists of a text label with the coordinates of the cursor placed above and to the right of the cursor and a line label with one end anchored to the trace at the cursor and the other end placed just below the text.

If the line label is moved, the end anchored to the trace does not move, and the line stretches and rotates about the anchor point.

Editing labels

There are several ways to edit items in PSpice:

For more information, see the following topics:

To copy a Probe window to the clipboard

  1. Click the tab of the Probe window you want to copy.
  2. From the Window menu, choose Copy to Clipboard. The status line and the menu bar are not copied.
  3. Paste the bitmap into a graphics program like Microsoft Paint.
  4. Edit the bitmap as needed.
  5. Do one of the following:
    • Save the bitmap to a file. Use this option if you are going to need the bitmap in several applications.
    • Copy the bitmap again and paste it in another application.

To copy and paste an item

  1. Click an item.
  2. On the toolbar, click the Copy button.
  3. On the toolbar, click the Paste button.
  4. Click to place the item.

To modify a trace

  1. Do one of the following:
    • Click the trace name. From the Edit menu, choose Modify Object.
    • Double-click the trace name.
  2. Do any of the following:
    • Select a new expression from the list.
    • Type in a new expression.
    • Modify the existing expression.
  3. Click OK.

To modify a label or an ellipse angle

  1. Click a label or an ellipse.
  2. From the Edit menu, choose Modify Object.
  3. Make any changes in the dialog box.
  4. Click OK.

Copying Probe data to other applications

Copying Probe window to the Windows Clipboard and word processing applications

To copy a Probe window to the Windows Clipboard and word processing applications like Microsoft Word, do the following:

  1. Click the tab of the Probe window you want to copy.
  2. From the Window menu, choose Copy to Clipboard. The Copy to Clipboard dialog box appears.
  3. Select the Make window and plot backgrounds transparent check box if you want to copy the probe window and plot background with a transparent background.
  4. Select the appropriate check box for the foreground color.
  5. Click OK.
    The Probe window is copied to the Windows Clipboard. The status line and the menu bar are not copied.
  6. Paste the bitmap into a graphics program like Microsoft Paint.
  7. Edit the bitmap as needed.
  8. Do one of the following:
    • Save the bitmap to a file. Use this option if you are going to need the bitmap in several applications.
    • Copy the bitmap again and paste it in another application.

Copying Probe data to spreadsheet applications and math programs

You can copy the X and Y-axis data for traces on the Probe window to text editors, spreadsheet applications and math programs. You can then manipulate the data for your own purposes. For example, you can define custom measurement functions in Microsoft Excel and analyze the Probe data using those functions. You can also use the probe data in spreadsheet applications to create charts or graphs for presentation purposes.

  1. Click the tab of the Probe window from which you want to copy the data.
  2. Click the trace name in the plot legend. To select more than one trace name, use SHIFT+click or CTRL+click.
  3. From the Edit menu choose Copy.
  4. Do one of the following:
    • Paste the data into a spreadsheet or math program.
    • Paste the data into a text editor and save it to an ASCII text file. The data is stored in a tab-delimited format.

    Use this option if you want to import the data into other applications.

Loading large data file

To load a large data file, you can select one of the following methods:

Displaying fewer data points

Instead of using all the data points in the .dat file, only a few points are used to construct the complete trace. The number of data points used to construct the complete trace depends on the number of data points per trace defined in PSpice. By default, this limit is set to 1 million points, but if required, users can increase this limit. See Setting large data file options

Displaying partial trace

The complete trace is divided into multiple smaller parts. Only a part of the trace is loaded and displayed. Number of partial traces created depends on total number of data points used to define the trace and also on the number of data points per trace allowed in PSpice. By default, the number of data points per trace is set to 1 million points, but if required, users can increase this limit. See Setting options for large data files.

Importing traces

PSpice now allows you to import the traces stored in tabular format in a text (.txt) or comma-separated (.csv) file. Using the import feature you can import waveforms generated by measuring instruments such as digital oscilloscope to PSpice.

To import a trace into PSpice, saved in a text (.txt) or a comma-separated (.csv) file complete the following steps.

  1. From the File menu, choose Import.
  2. In the Import File dialog box, select the text file to be imported in PSpice.
    The Import Traces dialog box appears. All the nodes listed in the source file are listed in the X-axis drop-down list and the Available Nodes list.
  3. In the Import Traces dialog box, specify the name and the location of the .DAT file in which the imported trace is to be stored.
  4. From the X-Axis drop-down list box, select the node name to be plotted on the X-Axis.
  5. Specify a name for the X-axis. Select one of the following options for naming the X-axis.
    1. Time
    2. Frequency
    3. Sweep Variable: when you select Sweep Variable, you need to specify the variable name in the enabled text box.
  6. From the Available Traces list box, select the traces that are to be imported in PSpice.
  7. Click Add.
    The selected traces appear in the Import Trace list box. To import all the traces available in the source file, click the Add All.
  8. Select OK to import the selected trace(s).

Import Traces

This dialog box appears when you try to import a traces saved in the text format or in a .csv file.

DAT File Path

Specify the name and location of the data file in which the imported trace will be saved.

X-Axis

Select the trace that is to be plotted along the X-Axis.

The X-Axis drop-down list box lists all the traces available in the .txt or the .csv file.

Specify a name for the X-Axis using one of the following options.

Time

Select this, if you want to rename the X-axis as Time.

Frequency

Select this, if you want to rename the X-axis as Frequency.

Sweep Variables

Select this, if you want to specify a user-defined name for the X-axis. Specify the name in the enabled text box.

Available Traces

Lists all the traces available in the .txt or .csv file.

Imported Traces

Lists all the traces that will be imported in the .dat file.

Add

Click this to add the selected trace to the Import Trace list.

Add All

Click this to add all the available traces into the Import Traces list.

The trace selected as X-Axis, will not appear in the Import Traces list box.

Remove

Click this to remove the selected traces from the Import Trace list.

Remove All

Click this to empty the Import Traces list


Return to top