This PSpice video demonstrates how to setup a PSpice simulation. After you complete this demonstration you will be able to:
- Create a transient and AC sweep
- Show last plot feature
- Export a plot to a .csv and Excel file
To begin, we will select the New Simulation Profile icon from the PSpice toolbar. Or we can select PSpice > New Simulation Profile from the main menu.
This selection opens the New Simulation dialog where we enter a name for the new simulation. In this example, we are entering the name “transient.”
The Inherit From drop list provides menu choices you can select to either create a new simulation from scratch or by copying a simulation profile from another project.
In this example, we are selecting “none” from the Inherit From drop list to create a new simulation with default settings. The simulation is created when you click the Create button.
A transient simulation is a measurement of the circuit in the time domain. The results of the simulation are presented as if the circuit was tested using an oscilloscope. This is the only type of simulation that can be performed on digital designs.
The Simulation Settings dialog includes controls that enable you to set the run time for your circuit as well as the maximum step size. The step size determines how many points are measured during your run time. Setting up a maximum step allows you to set a step size than is less than the default.
After you create your simulation, you can use the probes located in the simulation toolbar to choose the points you want to measure. The probes enable you to measure voltage, current and power. Voltage probes can be places on any node, current nodes must be placed on component pins, and power pins must be placed on a component. There are also advanced probes you can select such as Fourier, average, derivative and more.
Next to the probes in the toolbar, you can click the V, I, or W icons that are enclosed in a white circle to view the voltage, current and power at a bias point displayed on your circuit.
To run your simulation, press the play button that is located in the simulation toolbar. Or select PSpice > Run from the main PSpice menu. A new PSpice A/D window entry is added to your main tool bar. Open this window to view your simulation. Any probes you selected will appear in your plot window.
To create an additional simulation, return to Capture and select PSpice > New Simulation Profile. You can toggle the view between different schematic simulations by selecting a simulation from the drop-down menu in the simulation toolbar.
To create an AC sweep simulation, open the New Simulation dialog and repeat the same steps we described to name and inherit profile settings. Click the Create button to open the Simulation Settings dialog.
To create a simulation for an AC Sweep/Noise, select AC Sweep/Noise from the Analysis Types drop down menu. Choose a start frequency and an end frequency and the points/decade amount for the simulation.
You can save plot settings by going to plot window in your simulation setting and checking the show last plot option, you can do this during creation or edit your simulation and do this at anytime.
This saves any setting you have manipulated while you were in the plot window instead of resetting each time you run your circuit.
If you do not place probes, you will get a blank probe window.
To add traces that you want to view, you can press your keyboard Insert key or select Trace > Add Trace from the main menu. You can select current and voltages at specific point in your circuit. You can also select other functions of those measurements using the functions of macros drop down menu.
You can copy and paste your data or export it directly into a different file type.
If you would like to copy and paste a picture of your plot window into another document, you can go to Window > Copy to Clipboard in the main menu.
It will then give you option to make your window transparent instead of black and change the colors of your grid to black or keep the colors on the screen. It is then in your clip board and you can paste it into your document.
If you would like the data points in separate document, you can click the traces you would like to copy and paste and then click ctrl-c. You will then be able to place them into another document. You can also export all your data into a .csv file to use data in other places. To do this got to File > Export > Comma Separated File (.csv file).
The next tutorial demonstrates how to create a PSpice part from a spice file.