Changes

Visualizing Simulation Data Using Graphs and Tables

8 bytes removed, 01:39, 3 August 2015
At the end of an analog or mixed-mode circuit simulations, the node voltages, branch currents and device powers are typically available for graphing or tabulation. Voltages, current and powers are usually plotted as a function of time or frequency. In the case of a Network Analysis test, port characteristics like scattering, impedance or admittance [[parameters]] are also computed. At the end of a digital circuit simulation, it is the state of the digital inputs and outputs that you would like to visualize.
 
[[File:b2MAN_Fig107.png|thumb|220px|The lower section of a test panel.]]
The Edit Plot List dialog consists of three tables. The table on the left shows the hierarchy for the case of multilevel signals. In the middle table (Signal Name List) you see a list of the available signals for plotting. The table on the right (Graph Name List) lists the signals to be plotted. Select one of more signals from the middle table and use the right arrow "Add-->" button to move them to the right table. You can also select more than one signal using the "Ctrl" key or a range of consecutive signals using the "Shift" key. You may modify and revise the list of the signals to be plotted by moving one or more items from the right table back to the middle table using the left arrow "<--Remove" button.
 
Besides voltages, currents and powers, [[B2.Spice A/D]] allows you to define, calculate and graph or tabulate new custom plots. This is done using the two buttons labeled "Add Custom Plot" and "Edit Custom Plot". Both buttons open up the "Edit Signal Plot" dialog. Here you enter a name and color for your new plot. The dialog has three tables. On the left you see a list of all the available signal names. In the middle, you see a list of all the legal mathematical functions. On the right is a list of all the legal operators. You can define your new plot using a mathematical expression involving the available signals and the legitimate mathematical functions and operations.
</tr>
</table>
 
[[File:b2MAN_Fig109.png|thumb|300px|An Op-Amp circuit with two voltage probes.]]
</tr>
</table>
 
[[File:b2MAN_Fig113.png|thumb|160px|B2.Spice's Probe menu.]]
In AC sweep [[tests]] and other AC-types [[tests]] such as network analysis, the simulation output data are complex-valued. In this case, you have to specify whether you want to plot the magnitude or phase of a signal or its real or imaginary parts. In the case of magnitude, you have to specify whether to use dB or linear scale. In the case of phase, you have to specify whether to use degree or radian units. All of these can be done from the "Complex Signal Settings" section of the Edit Plot List dialog. This section is enabled only for [[tests]] of AC types. Alternatively, you can place special voltage or current probes with "dB", "Mag" or "Ph-deg" designations as shown in the Probe Menu on the right. The figure below shows a graph showing the magnitude of the input and output voltages of the previous Op-Amp circuit at the end of an AC sweep simulation.
 
<table>
</tr>
</table>
 
[[File:b2MAN_Fig228.png|thumb|300px|The FFT Settings dialog for spectrum graph.]]
</tr>
</table>
 
==Working with the Data on Your Plots==
Graphs are displayed in a separate window called a "Graph Window" in [[B2.Spice A/D]]. To activated a graph window, click the mouse on its surface or its tab. When a graph window is active in the workspace, the menu at the top of the screen changes to the "[[Menus#Graph_View_Menus |Graph Menu]]", the toolbar underneath the menu bar changes to the "[[Toolbars#Graph_Toolbar |Graph Toolbar]]" and also four additional tabs are added to the Toolbox on the left of the screen. These additional tabs are Edit Plots, Tracker, Edit Axes and Edit Graph.
 
<table>
28,333
edits